diff options
author | Christopher Faylor <me@cgf.cx> | 2000-05-18 03:20:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-05-18 03:20:01 +0000 |
commit | 12e659efa8f172167a526f251e36571f6f976740 (patch) | |
tree | af0e1b0e10b0d1f85074c9a0bc2fd3aadb4fe17e /winsup/cygwin/sigproc.cc | |
parent | 2dc173fe91dfdf9fbf2844f54bb064f43a8c0004 (diff) | |
download | cygnal-12e659efa8f172167a526f251e36571f6f976740.tar.gz cygnal-12e659efa8f172167a526f251e36571f6f976740.tar.bz2 cygnal-12e659efa8f172167a526f251e36571f6f976740.zip |
* dcrt0.cc (dll_crt0_1): Initialize mainthread stuff here before anything needs
it.
* sigproc.cc (sigproc_init): Move mainthread initialization out of here.
* sigproc.h (sigthread): Add init() method.
(sigframe): Don't try to initialize muto.
* sync.cc: Undef WaitForSingleObject to avoid recursion.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 27541667d..7c18e6259 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -100,7 +100,6 @@ Static waitq waitq_main; // Storage for main thread muto NO_COPY *sync_proc_subproc = NULL; // Control access to subproc stuff -sigthread NO_COPY mainthread; // ID of the main thread DWORD NO_COPY sigtid = 0; // ID of the signal thread int NO_COPY pending_signals = 0; // TRUE if signals pending @@ -604,9 +603,6 @@ sigproc_init () to a signal handler function. */ signal_arrived = CreateEvent(&sec_none_nih, TRUE, FALSE, NULL); - mainthread.id = GetCurrentThreadId ();// For use in determining if signals - // should be blocked. - if (!(hwait_sig = makethread (wait_sig, NULL, 0, "sig"))) { system_printf ("cannot create wait_sig thread, %E"); |