diff options
Diffstat (limited to 'create.c')
-rw-r--r-- | create.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -73,19 +73,11 @@ pthread_create (pthread_t * tid, ThreadParms *parms = NULL; long stackSize; - if ((thread = (pthread_t) calloc (1, sizeof (*thread))) == - NULL) + if ((thread = _pthread_new()) == NULL) { 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, |