From 09cbb9d6b737a7acf228731945b599c13e6c5d92 Mon Sep 17 00:00:00 2001 From: Thomas Pfaff Date: Thu, 9 Jan 2003 20:57:54 +0000 Subject: Apply pthread_cancel_patch --- winsup/cygwin/thread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index cf08a7630..fad85e557 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -332,6 +332,8 @@ private: static nativeMutex mutexInitializationLock; }; +#define WAIT_CANCELED (WAIT_OBJECT_0 + 1) + class pthread:public verifyable_object { public: @@ -379,6 +381,8 @@ public: virtual void testcancel (); static void static_cancel_self (); + static DWORD cancelable_wait (HANDLE object, DWORD timeout, const bool do_cancel = true); + virtual int setcancelstate (int state, int *oldstate); virtual int setcanceltype (int type, int *oldtype); -- cgit v1.2.3