diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-18 01:26:22 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-20 18:59:44 +0200 |
commit | f02c25c0ef3dc3acac7ea96bed5716882d8af2ec (patch) | |
tree | 2dabee618f201e9c4e38338d5fd591d3a604d842 /kern | |
parent | e113297de8d349b3ccc2e7bf8b169fe5c5493580 (diff) |
kern/lock: add lock_taken
* kern/lock.h (lock_taken): New macro.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/lock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kern/lock.h b/kern/lock.h index 2781a48..74cd933 100644 --- a/kern/lock.h +++ b/kern/lock.h @@ -202,6 +202,7 @@ extern boolean_t lock_try_read_to_write(lock_t); #define lock_read_done(l) lock_done(l) #define lock_write_done(l) lock_done(l) +#define lock_taken(l) ((l)->want_write || (l)->read_count) extern void lock_set_recursive(lock_t); extern void lock_clear_recursive(lock_t); |