diff options
author | Thomas Pfaff <tpfaff@gmx.net> | 2003-01-09 20:57:54 +0000 |
---|---|---|
committer | Thomas Pfaff <tpfaff@gmx.net> | 2003-01-09 20:57:54 +0000 |
commit | 09cbb9d6b737a7acf228731945b599c13e6c5d92 (patch) | |
tree | 803e44b22dc2551be42d8a2fde3c8d1358689af1 /winsup/cygwin/thread.h | |
parent | 72fcbc3ee690a028128274d2bd0ad694961b5e5f (diff) | |
download | cygnal-09cbb9d6b737a7acf228731945b599c13e6c5d92.tar.gz cygnal-09cbb9d6b737a7acf228731945b599c13e6c5d92.tar.bz2 cygnal-09cbb9d6b737a7acf228731945b599c13e6c5d92.zip |
Apply pthread_cancel_patch
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |