diff options
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r-- | winsup/cygwin/sigproc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index 40f518777..2e31e578c 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -39,9 +39,7 @@ struct sigthread { DWORD id; DWORD frame; -#if 0 - muto *lock; // FIXME: Use for multi-thread signalling someday -#endif + CRITICAL_SECTION lock; void init (const char *s); }; @@ -69,7 +67,9 @@ public: { if (st) { + EnterCriticalSection (&st->lock); st->frame = 0; + LeaveCriticalSection (&st->lock); st = NULL; } } |