aboutsummaryrefslogtreecommitdiffstats
path: root/include/rwlock.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-14 18:15:56 -0700
committerChris Robinson <[email protected]>2017-04-14 18:15:56 -0700
commitafb59e7f98f40cde77c150414a8a5bd13f40781a (patch)
tree45ff03dd2eaec63563ff518a035967675b47bd55 /include/rwlock.h
parentc5310d2e953c44eb33aa9bfa913e62adf11f20fd (diff)
Move internal headers out of the include directory
Diffstat (limited to 'include/rwlock.h')
-rw-r--r--include/rwlock.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/rwlock.h b/include/rwlock.h
deleted file mode 100644
index 8e36fa1a..00000000
--- a/include/rwlock.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef AL_RWLOCK_H
-#define AL_RWLOCK_H
-
-#include "bool.h"
-#include "atomic.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- RefCount read_count;
- RefCount write_count;
- ATOMIC_FLAG read_lock;
- ATOMIC_FLAG read_entry_lock;
- ATOMIC_FLAG write_lock;
-} RWLock;
-#define RWLOCK_STATIC_INITIALIZE { ATOMIC_INIT_STATIC(0), ATOMIC_INIT_STATIC(0), \
- ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT }
-
-void RWLockInit(RWLock *lock);
-void ReadLock(RWLock *lock);
-void ReadUnlock(RWLock *lock);
-void WriteLock(RWLock *lock);
-void WriteUnlock(RWLock *lock);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* AL_RWLOCK_H */