summaryrefslogtreecommitdiffstats
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, 2 insertions, 0 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c
index 4116ac22..8f838b62 100644
--- a/src/libthread/thread.c
+++ b/src/libthread/thread.c
@@ -184,7 +184,9 @@ scheduler(Proc *p)
if(p->nthread == 0)
goto Out;
p->runrend.l = &p->lock;
+print("sleep for jobs %d\n", getpid());
_procsleep(&p->runrend);
+print("wake from jobs %d\n", getpid());
}
delthread(&p->runqueue, t);
unlock(&p->lock);