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:
authorChristopher Faylor <me@cgf.cx>2011-08-25 23:37:39 +0400
committerChristopher Faylor <me@cgf.cx>2011-08-25 23:37:39 +0400
commit2691168e9847fd9b14b2bf4eaff597b6b19d593b (patch)
treed293af6cb6944cee5ecae425adf43cbd1ad886ea /winsup/cygwin/cygthread.cc
parent603ef545bdbdbf7495e1a0bbabffb8741fc2a5bb (diff)
* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
also in freerange thread case.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r--winsup/cygwin/cygthread.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc
index 50a265b4b..a98f372a1 100644
--- a/winsup/cygwin/cygthread.cc
+++ b/winsup/cygwin/cygthread.cc
@@ -136,7 +136,11 @@ cygthread::simplestub (VOID *arg)
cygthread *info = (cygthread *) arg;
_my_tls._ctinfo = info;
info->stack_ptr = &arg;
+ HANDLE notify = info->notify_detached;
info->callfunc (true);
+ if (notify)
+ SetEvent (notify);
+
return 0;
}