diff options
Diffstat (limited to 'src/libthread/pthread.c')
-rw-r--r-- | src/libthread/pthread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index fcc309b7..38eb7d78 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -67,6 +67,16 @@ _procwakeup(_Procrendez *r) } } +void +_procwakeupandunlock(_Procrendez *r) +{ + if(r->asleep){ + r->asleep = 0; + pthread_cond_signal(&r->cond); + } + unlock(&r->l); +} + static void startprocfn(void *v) { |