* cygthread.cc (cygthread::simplestub): Notify that the thread has detached

also in freerange thread case.
This commit is contained in:
Christopher Faylor 2011-08-25 19:37:39 +00:00
parent 603ef545bd
commit 2691168e98
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-08-25 Rafal Zwierz <rzwierz@googlemail.com>
* cygthread.cc (cygthread::simplestub): Notify that the thread has
detached also in freerange thread case.
2011-08-25 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Never open files with

View File

@ -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;
}