2244 IssueStruct* issueParam = (IssueStruct*) threadParam;
2247 status = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, 0);
2250 printf(
"Set cancel state error: %d\n", status);
2254 "Unable to configure issue thread properly. Execution might eventually be affected.", 0);
2257 status = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
2260 printf(
"Set cancel type error error: %d\n", status);
2264 "Unable to configure issue thread properly. Execution might eventually be affected.", 0);
2268 issueParam->nRet = issue(issueParam->command, &(issueParam->result), &(issueParam->size));
2271 status = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, 0);
2274 printf(
"Set cancel type error: %d\n", status);
2278 "Unable to configure issue thread properly. Execution might eventually be affected.", 0);
2282 status = pthread_mutex_lock(&
wait_mut);
2285 printf(
"Lock cond mutex error: %d\n", status);
2289 "Unable to lock condition mutex for watchdog in issue thread. Execution might eventually be affected.",
2295 pthread_cond_broadcast(&
cond);
2298 status = pthread_mutex_unlock(&
wait_mut);
2301 printf(
"Unlock cond mutex error: %d\n", status);
2305 "Unable to unlock condition mutex for watchdog in issue thread. Execution might eventually be affected.",
void createLogMessage(unsigned int type, char *description, char *origin)
static pthread_mutex_t wait_mut
static pthread_cond_t cond