aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libthread/thread.c2
-rw-r--r--src/libthread/threadimpl.h1
2 files changed, 1 insertions, 2 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);
}
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index 9eddba21..fd40f252 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -88,7 +88,6 @@ struct Proc
uint nthread;
uint sysproc;
_Procrendez runrend;
- Lock schedlock;
_Thread *schedthread;
void *udata;
Jmp sigjmp;