mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
libthread: drop schedlock
Having two locks in the proc was causing deadlocks.
This commit is contained in:
parent
4692dd4786
commit
91ececc997
2 changed files with 1 additions and 2 deletions
|
@ -281,7 +281,7 @@ static void
|
||||||
pthreadwakeupschedlocked(Proc *p, _Thread *self, _Thread *t)
|
pthreadwakeupschedlocked(Proc *p, _Thread *self, _Thread *t)
|
||||||
{
|
{
|
||||||
_threaddebug(self, "pthreadwakeupschedlocked %p %d", p, t->id);;
|
_threaddebug(self, "pthreadwakeupschedlocked %p %d", p, t->id);;
|
||||||
t->schedrend.l = &p->schedlock;
|
t->schedrend.l = &p->lock;
|
||||||
p->schedthread = t;
|
p->schedthread = t;
|
||||||
_procwakeup(&t->schedrend);
|
_procwakeup(&t->schedrend);
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,6 @@ struct Proc
|
||||||
uint nthread;
|
uint nthread;
|
||||||
uint sysproc;
|
uint sysproc;
|
||||||
_Procrendez runrend;
|
_Procrendez runrend;
|
||||||
Lock schedlock;
|
|
||||||
_Thread *schedthread;
|
_Thread *schedthread;
|
||||||
void *udata;
|
void *udata;
|
||||||
Jmp sigjmp;
|
Jmp sigjmp;
|
||||||
|
|
Loading…
Reference in a new issue