add _procwakeupandunlock
to help ease locking contention on Linux 2.4.
This commit is contained in:
parent
815552b9ed
commit
a0a331aad9
5 changed files with 44 additions and 12 deletions
|
|
@ -67,6 +67,16 @@ _procwakeup(_Procrendez *r)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
_procwakeupandunlock(_Procrendez *r)
|
||||
{
|
||||
if(r->asleep){
|
||||
r->asleep = 0;
|
||||
pthread_cond_signal(&r->cond);
|
||||
}
|
||||
unlock(&r->l);
|
||||
}
|
||||
|
||||
static void
|
||||
startprocfn(void *v)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue