summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-12-13 17:22:47 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-12-13 17:22:47 +0000
commitc27a4ca24d96fa824f4578c2873a7e1da25f9a7f (patch)
tree7265bb2cc5839f80297f22bdb26e918ca86f62fb /lib/librthread/rthread.h
parentd7cd8f61d3b2e4c6c3cbb6117d86eb2ccd14414f (diff)
make the mutex unlock and sleep in pthread_cond_wait properly atomic
Diffstat (limited to 'lib/librthread/rthread.h')
-rw-r--r--lib/librthread/rthread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librthread/rthread.h b/lib/librthread/rthread.h
index be9c6f93307..beceb9b5543 100644
--- a/lib/librthread/rthread.h
+++ b/lib/librthread/rthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.h,v 1.2 2005/12/13 05:56:55 tedu Exp $ */
+/* $OpenBSD: rthread.h,v 1.3 2005/12/13 17:22:46 tedu Exp $ */
/*
* Copyright (c) 2004 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -105,6 +105,7 @@ struct pthread {
void _spinlock(_spinlock_lock_t *);
void _spinunlock(_spinlock_lock_t *);
int _sem_wait(sem_t, int, int);
+int _sem_waitl(sem_t, int, int);
int _sem_post(sem_t);
int _sem_wakeup(sem_t);
int _sem_wakeall(sem_t);