aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/thread.c')
-rw-r--r--src/libthread/thread.c2
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);
}