summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
authorrpj <rpj>2000-01-04 10:19:28 +0000
committerrpj <rpj>2000-01-04 10:19:28 +0000
commita378d97dc9d9eadaef00a9f01816948db5f3a796 (patch)
tree654435cc0a85156c2a9b4793ab7d8e0da8424e32 /create.c
parent27d833666dfd72cc6e74c3900d3e8e66321bea3a (diff)
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
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,