From a378d97dc9d9eadaef00a9f01816948db5f3a796 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 4 Jan 2000 10:19:28 +0000 Subject: Main changes (see ChangeLog diff for details and attributions):- - asynchronous cancellation added - attempt to hide internal exceptions from applications - kernel32 load/free problem fixed - new tests - changes only to comments in some tests --- create.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'create.c') 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, -- cgit v1.2.3