From 9071e067ecc1f51276c35729d0b883b38be6bb85 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 30 Aug 1998 17:51:34 +0000 Subject: [PATCH] Belongs in the include directory --- libraries/liblthread/rdwr.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 libraries/liblthread/rdwr.h diff --git a/libraries/liblthread/rdwr.h b/libraries/liblthread/rdwr.h deleted file mode 100644 index f4cda4d563..0000000000 --- a/libraries/liblthread/rdwr.h +++ /dev/null @@ -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); -- 2.39.5