* 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:
@ -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. */
|
||||
}
|
||||
|
Reference in New Issue
Block a user