* dcrt0.cc (sigthread::init): Correct overzealous ifdef.

* exceptions.cc (call_handler): Avoid calling sigthread acquire lock.
* sigproc.h (sigthread): Comment out lock for now.
* sync.cc (muto::acquire): Add a minor optimization.
This commit is contained in:
Christopher Faylor
2000-10-19 17:57:28 +00:00
parent 2556e737ec
commit 167095f6c0
5 changed files with 22 additions and 2 deletions

View File

@ -87,7 +87,7 @@ muto::acquire (DWORD ms)
switch (WaitForSingleObject (bruteforce, ms))
{
case WAIT_OBJECT_0:
was_waiting = 0;
goto gotit;
break;
default:
InterlockedDecrement (&waiters);
@ -96,6 +96,7 @@ muto::acquire (DWORD ms)
}
}
gotit:
tid = this_tid; /* register this thread. */
return ++visits; /* Increment visit count. */
}