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:
authorCorinna Vinschen <corinna@vinschen.de>2011-04-30 14:20:25 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-04-30 14:20:25 +0400
commit42faed412857d4a0069d982d5c8cfe138b7a0197 (patch)
tree2b37d7f90e68ee5d30834a9c6d7789f2d6d609f9 /winsup/cygwin/thread.h
parente0b0b9e4ff56b255bb8b2ea9b7e99599ffdbdb56 (diff)
* thread.h (class pthread): Add bool member canceled.
* thread.cc (pthread::pthread): Initialize canceled to false. (pthread::cancel): Set canceled before setting cancel_event. (pthread::testcancel): Check for canceled. Only wait for cancel_event if canceled is true. Explain why. (pthread::_fixup_after_fork): Set canceled to false.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index f96714f49..2453630f8 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -366,6 +366,7 @@ public:
void *return_ptr;
bool valid;
bool suspended;
+ bool canceled;
int cancelstate, canceltype;
_cygtls *cygtls;
HANDLE cancel_event;