diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1998-09-07 19:01:43 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1998-09-07 19:01:43 +0000 |
| commit | c0e366326f20ddbaf07815896407c7c957b824e8 (patch) | |
| tree | 9b63aad918dea7a256fcf0eec444c5369771ea39 /lib/libpthread/thread/thr_private.h | |
| parent | 6c88a1f638ea30adbeecdffc40a099b3d7b9f99f (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
| -rw-r--r-- | lib/libpthread/thread/thr_private.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 39ce14d03064..5b76a860b9ff 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -224,6 +224,18 @@ struct pthread_key { void (*destructor) (); }; +struct pthread_rwlockattr { + int pshared; +}; + +struct pthread_rwlock { + pthread_mutex_t lock; /* monitor lock */ + int state; /* 0 = idle >0 = # of readers -1 = writer */ + pthread_cond_t read_signal; + pthread_cond_t write_signal; + int blocked_writers; +}; + /* * Thread states. */ |
