summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/create.c b/create.c
index 0575643..79085bf 100644
--- a/create.c
+++ b/create.c
@@ -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,