CBLK: Make timeout for request a constant
Unfortunately there is no parameter we could use to influence the
library setting. We might like to add an env variable to do this
from the side. As always ... I do not really like those env vars.
#include "capiblock.h"
#undef CONFIG_WAIT_FOR_IRQ /* Not fully working */
+#define CONFIG_REQUEST_TIMEOUT 5
/*
* FIXME The following stuff most likely neesd to go in a header file
@@ -559,7 +560,7 @@ static void *done_thread(void *arg)
else no_result_counter++;
gettimeofday(&etime, NULL);
- check_request_timeouts(c, &etime, 5 * 1000);
+ check_request_timeouts(c, &etime, CONFIG_REQUEST_TIMEOUT * 1000);
pthread_testcancel(); /* go home if requested */
}
}
