summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-10-30 09:17:28 +0000
committerrpj <rpj>1999-10-30 09:17:28 +0000
commit588b7f6616834651ea4062cf440e57a8a0cba25f (patch)
tree52851833a18a06ffadcca2e1c9dac08e9ec30d9a /create.c
parent9d592dbd51949858e2e787d16476420f10d2c9a5 (diff)
./ChangeLog:
1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * create.c (pthread_create): Explicitly initialise thread state to default values. * cancel.c (pthread_setcancelstate): Check for NULL 'oldstate' for compatibility with Solaris pthreads; (pthread_setcanceltype): ditto: - Erik Hensema <erik.hensema@group2000.nl> 1999-10-23 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * pthread.h (ctime_r): Fix incorrect argument "_tm" - Erik Hensema <erik.hensema@group2000.nl> tests/ChangeLog: 1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * cancel1.c: New. Test pthread_setcancelstate and pthread_setcanceltype functions. * eyal1.c (waste_time): Change calculation to avoid FP exception on Aplhas - Rich Peters <rpeters@micro-magic.com>
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,