Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-01-09 23:57:54 +0300
committerThomas Pfaff <tpfaff@gmx.net>2003-01-09 23:57:54 +0300
commit09cbb9d6b737a7acf228731945b599c13e6c5d92 (patch)
tree803e44b22dc2551be42d8a2fde3c8d1358689af1 /winsup/cygwin/thread.h
parent72fcbc3ee690a028128274d2bd0ad694961b5e5f (diff)
Apply pthread_cancel_patch
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h4
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);