summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygtls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-12-21 18:52:00 +0000
committerChristopher Faylor <me@cgf.cx>2012-12-21 18:52:00 +0000
commit614aff88a0cf6c0ec5ec5ba063b003549dedc9db (patch)
treef750a571791d6d564bc7a5a252e2f2b78f22ec74 /winsup/cygwin/cygtls.cc
parentdfbb1d0383420c383b8f0bc3149d4b76fa51b398 (diff)
downloadcygnal-614aff88a0cf6c0ec5ec5ba063b003549dedc9db.tar.gz
cygnal-614aff88a0cf6c0ec5ec5ba063b003549dedc9db.tar.bz2
cygnal-614aff88a0cf6c0ec5ec5ba063b003549dedc9db.zip
* DevNotes: Add entry cgf-000017.
* _cygtls.cc (_cygtls::call2): Use new exit_thread function in place of ExitThread. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. (pthread_mutex::unlock): Set tid to NULL rather than 0. (pthread_spinlock::unlock): Ditto. * pinfo.cc (commune_process): Actually call lock_process constructor. * sigproc.cc (exit_thread): New function. (wait_sig): Handle __SIGTHREADEXIT case. Don't just block rather than returning from this function. * sigproc.h (__SIGTHREADEXIT): New enum. (exit_thread): Declare. * sync.cc (muto::release): Accept a tls command-line argument. * sync.h (muto::release): Accept a tls command-line parameter. Default to &_my_tls.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r--winsup/cygwin/cygtls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc
index 2ff22ed98..a94f333a2 100644
--- a/winsup/cygwin/cygtls.cc
+++ b/winsup/cygwin/cygtls.cc
@@ -102,7 +102,7 @@ _cygtls::call2 (DWORD (*func) (void *, void *), void *arg, void *buf)
dynamically loaded. */
if ((void *) func != (void *) dll_crt0_1
&& (void *) func != (void *) dll_dllcrt0_1)
- ExitThread (res);
+ exit_thread (res);
}
void