libthread: drop schedlock
Having two locks in the proc was causing deadlocks.
This commit is contained in:
@@ -281,7 +281,7 @@ static void
|
||||
pthreadwakeupschedlocked(Proc *p, _Thread *self, _Thread *t)
|
||||
{
|
||||
_threaddebug(self, "pthreadwakeupschedlocked %p %d", p, t->id);;
|
||||
t->schedrend.l = &p->schedlock;
|
||||
t->schedrend.l = &p->lock;
|
||||
p->schedthread = t;
|
||||
_procwakeup(&t->schedrend);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user