summaryrefslogtreecommitdiff
path: root/libthreads/rwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'libthreads/rwlock.h')
-rw-r--r--libthreads/rwlock.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libthreads/rwlock.h b/libthreads/rwlock.h
index 28f99979..4f208424 100644
--- a/libthreads/rwlock.h
+++ b/libthreads/rwlock.h
@@ -16,6 +16,12 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef _rwlock_h
+#define _rwlock_h
+
+#include <cthreads.h>
+#include <assert.h>
+
struct rwlock
{
struct mutex master;
@@ -96,3 +102,6 @@ rwlock_init (struct rwlock *lock)
#define RWLOCK_INITIALIZER \
{ MUTEX_INITIALIZER, CONDITION_INITIALIZER, 0, 0, 0 }
+
+
+#endif /* _rwlock_h */