* cygheap.h: Remove some parameter names from declarations throughout.
(cygheap::set): Reflect changes in declaration for arguments and return value from previous checkin.
This commit is contained in:
@@ -125,6 +125,16 @@ muto::release ()
|
||||
threads waiting for the lock, so trigger bruteforce. */
|
||||
if (InterlockedDecrement (&waiters) >= 0)
|
||||
(void) SetEvent (bruteforce); /* Wake up one of the waiting threads */
|
||||
else if (*name == '!')
|
||||
{
|
||||
CloseHandle (bruteforce); /* If *name == '!' and there are no
|
||||
other waiters, then this is the
|
||||
last time this muto will ever be
|
||||
used, so close the handle. */
|
||||
#ifdef DEBUGGING
|
||||
bruteforce = NULL;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
return 1; /* success. */
|
||||
|
Reference in New Issue
Block a user