diff options
Diffstat (limited to 'create.c')
-rw-r--r-- | create.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -78,6 +78,14 @@ pthread_create (pthread_t * tid, { goto FAIL0; } + + /* + * Setup standard default state. + */ + thread->detachState = PTHREAD_CREATE_JOINABLE; + thread->cancelState = PTHREAD_CANCEL_ENABLE; + thread->cancelType = PTHREAD_CANCEL_DEFERRED; + thread->cancelEvent = CreateEvent ( 0, |