mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 10:07:56 -05:00
Belongs in the include directory
This commit is contained in:
parent
c98a6ff9e9
commit
9071e067ec
1 changed files with 0 additions and 28 deletions
|
|
@ -1,28 +0,0 @@
|
|||
/********************************************************
|
||||
* An example source module to accompany...
|
||||
*
|
||||
* "Using POSIX Threads: Programming with Pthreads"
|
||||
* by Brad nichols, Dick Buttlar, Jackie Farrell
|
||||
* O'Reilly & Associates, Inc.
|
||||
*
|
||||
********************************************************
|
||||
* rdwr.h --
|
||||
*
|
||||
* Include file for reader/writer locks
|
||||
*/
|
||||
typedef struct rdwr_var {
|
||||
int readers_reading;
|
||||
int writer_writing;
|
||||
pthread_mutex_t mutex;
|
||||
pthread_cond_t lock_free;
|
||||
} pthread_rdwr_t;
|
||||
|
||||
typedef void * pthread_rdwrattr_t;
|
||||
|
||||
#define pthread_rdwrattr_default NULL;
|
||||
|
||||
int pthread_rdwr_init_np(pthread_rdwr_t *rdwrp, pthread_rdwrattr_t *attrp);
|
||||
int pthread_rdwr_rlock_np(pthread_rdwr_t *rdwrp);
|
||||
int pthread_rdwr_runlock_np(pthread_rdwr_t *rdwrp);
|
||||
int pthread_rdwr_wlock_np(pthread_rdwr_t *rdwrp);
|
||||
int pthread_rdwr_wunlock_np(pthread_rdwr_t *rdwrp);
|
||||
Loading…
Reference in a new issue