diff options
author | Russ Cox <rsc@swtch.com> | 2020-12-30 08:41:01 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-12-30 08:41:01 -0500 |
commit | 91ececc99741b3111c69d455bc928e871b15d766 (patch) | |
tree | 09ff04c0001f812aa7a0464ca5119ab0acc40375 /src/libthread/thread.c | |
parent | 4692dd4786f8847494d3f020bc3c05ba210adc0d (diff) | |
download | plan9port-91ececc99741b3111c69d455bc928e871b15d766.tar.gz plan9port-91ececc99741b3111c69d455bc928e871b15d766.tar.bz2 plan9port-91ececc99741b3111c69d455bc928e871b15d766.zip |
libthread: drop schedlock
Having two locks in the proc was causing deadlocks.
Diffstat (limited to 'src/libthread/thread.c')
-rw-r--r-- | src/libthread/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index d72bf896..79e0ec71 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -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); } |