From 8e4d9692605463b1ad6786d11a731c3f3ab3da87 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 12 Sep 2001 03:18:05 +0000 Subject: Wed Sep 12 13:03:00 2001 Robert Collins * autoload.cc (LoadDLLfuncEx): Auto load TryEnterCriticalSection - its a n NT only call. * thread.cc (pthread_cond::TimedWait): Use critical sections for NT. (pthread_cond::fixup_after_fork): Don't detect bad apps. (pthread_mutex::pthread_mutex): Use critical sections for NT. (pthread_mutex::~pthread_mutex): Ditto. (pthread_mutex::Lock): Ditto. (pthread_mutex::TryLock): Ditto. (pthread_mutex::UnLock): Ditto. (pthread_mutex::fixup_after_fork): Ditto. Also do not detect bad apps. (__pthread_mutex_trylock): Move WIN32 specific test into the class metho d. (__pthread_mutex_destroy): Prevent dereferencing passed pointer without valid address. * thread.h (pthread_mutex): Use critical sections for NT. --- winsup/cygwin/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 6bcf3c257..68b29a9c0 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -267,6 +267,7 @@ public: class pthread_mutex:public verifyable_object { public: + CRITICAL_SECTION criticalsection; HANDLE win32_obj_id; LONG condwaits; int pshared; -- cgit v1.2.3