revert previous not-ready-for-primetime checkin.

This commit is contained in:
Christopher Faylor
2004-05-15 16:10:41 +00:00
parent 71af2ed39e
commit aafd8a545f
6 changed files with 54 additions and 92 deletions

View File

@@ -125,16 +125,6 @@ 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. */