diff options
author | Christopher Faylor <me@cgf.cx> | 2012-07-29 21:44:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-07-29 21:44:03 +0000 |
commit | a8344a0181ccf5b6b005a170ae142e51aed7801d (patch) | |
tree | 3d8bbef14e3bc75c0148cdca9a51be0e84a12c11 /winsup/cygwin/cygtls.h | |
parent | dd06381996da1d519f76489fe531cb0ed46e3fc6 (diff) | |
download | newlib-a8344a0181ccf5b6b005a170ae142e51aed7801d.zip newlib-a8344a0181ccf5b6b005a170ae142e51aed7801d.tar.gz newlib-a8344a0181ccf5b6b005a170ae142e51aed7801d.tar.bz2 |
Doh. Check in missing file from previous submission.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r-- | winsup/cygwin/cygtls.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index b6668db..3db7e10 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -248,6 +248,12 @@ public: signal_waiting = true; } } + void reset_signal_arrived () + { + if (signal_arrived) + ResetEvent (signal_arrived); + signal_waiting = false; + } private: void call2 (DWORD (*) (void *, void *), void *, void *) __attribute__ ((regparm (3))); /*gentls_offsets*/ @@ -322,7 +328,7 @@ public: set_signal_arrived (HANDLE& h) { _my_tls.set_signal_arrived (true, h); } operator int () const {return _my_tls.signal_waiting;} - ~set_signal_arrived () { _my_tls.signal_waiting = false; } + ~set_signal_arrived () { _my_tls.reset_signal_arrived (); } }; #define __getreent() (&_my_tls.local_clib) |