From a8344a0181ccf5b6b005a170ae142e51aed7801d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 29 Jul 2012 21:44:03 +0000 Subject: [PATCH] Doh. Check in missing file from previous submission. --- winsup/cygwin/cygtls.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index b6668db74..3db7e10b8 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) -- 2.43.5