diff options
Diffstat (limited to 'drivers/unix/rw_lock_posix.h')
-rw-r--r-- | drivers/unix/rw_lock_posix.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/unix/rw_lock_posix.h b/drivers/unix/rw_lock_posix.h index 35a686b15c..429b5c22d7 100644 --- a/drivers/unix/rw_lock_posix.h +++ b/drivers/unix/rw_lock_posix.h @@ -31,18 +31,16 @@ #if defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED) -#include <pthread.h> #include "os/rw_lock.h" +#include <pthread.h> class RWLockPosix : public RWLock { - pthread_rwlock_t rwlock; static RWLock *create_func_posix(); public: - virtual void read_lock(); virtual void read_unlock(); virtual Error read_try_lock(); @@ -56,10 +54,8 @@ public: RWLockPosix(); ~RWLockPosix(); - }; #endif - #endif // RWLOCKPOSIX_H |