From 4b26627e3f31905f0f739d57947d49995aa81913 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 13 Feb 2001 07:56:26 +0000 Subject: Change the thread cancel lock to be a critical section instead of a pthread_mutex_t. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 20c90f6..9d83ea7 100644 --- a/misc.c +++ b/misc.c @@ -390,7 +390,7 @@ ptw32_new (void) t->detachState = PTHREAD_CREATE_JOINABLE; t->cancelState = PTHREAD_CANCEL_ENABLE; t->cancelType = PTHREAD_CANCEL_DEFERRED; - t->cancelLock = PTHREAD_MUTEX_INITIALIZER; + InitializeCriticalSection(t->cancelLock); } return t; -- cgit v1.2.3