781 status = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, 0);
784 printf(
"Set cancel type error: %d\n", status);
793 printf(
"Lock mutex error: %d\n", status);
812 printf(
"Unlock mutex error: %d\n", status);
818 status = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, 0);
821 printf(
"Set cancel type error: %d\n", status);
static bool ceReadySignaled
static pthread_cond_t init_cond
static pthread_mutex_t wait_init_mut