Moved RECURSIVE_LOCK_HOLDER() macro to the header and fixed it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-03-05 23:15:15 +00:00
parent c964442c9b
commit a7edf1f7c0
2 changed files with 7 additions and 7 deletions

View File

@ -88,6 +88,13 @@ typedef struct rw_lock {
#define RW_LOCK_INITIALIZER(name) { name, NULL, -1, 0, 0, 0 } #define RW_LOCK_INITIALIZER(name) { name, NULL, -1, 0, 0, 0 }
#if KDEBUG
# define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->lock.holder)
#else
# define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->holder)
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -43,13 +43,6 @@ struct rw_lock_waiter {
#define RW_LOCK_FLAG_OWNS_NAME RW_LOCK_FLAG_CLONE_NAME #define RW_LOCK_FLAG_OWNS_NAME RW_LOCK_FLAG_CLONE_NAME
#if KDEBUG
# define RECURSIVE_LOCK_HOLDER(lock) ((lock)->lock.holder)
#else
# define RECURSIVE_LOCK_HOLDER(lock) ((lock)->holder)
#endif
int32 int32
recursive_lock_get_recursion(recursive_lock *lock) recursive_lock_get_recursion(recursive_lock *lock)
{ {