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