From 588b7f6616834651ea4062cf440e57a8a0cba25f Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 30 Oct 1999 09:17:28 +0000 Subject: ./ChangeLog: 1999-10-30 Ross Johnson * 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 1999-10-23 Ross Johnson * pthread.h (ctime_r): Fix incorrect argument "_tm" - Erik Hensema tests/ChangeLog: 1999-10-30 Ross Johnson * cancel1.c: New. Test pthread_setcancelstate and pthread_setcanceltype functions. * eyal1.c (waste_time): Change calculation to avoid FP exception on Aplhas - Rich Peters --- create.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'create.c') 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, -- cgit v1.2.3