diff options
| author | Zheng Da <zhengda1936@gmail.com> | 2009-11-18 02:54:34 +0100 |
|---|---|---|
| committer | Zheng Da <zhengda1936@gmail.com> | 2009-11-18 02:54:34 +0100 |
| commit | ece7285d5f8122ee120d3f5ceee1b514c734dec5 (patch) | |
| tree | 0870f3bdb113078d987a65cc8e972b2567586ebc | |
| parent | bcbb19bbe30d89a24591d632bbed62123dbef8be (diff) | |
Check in the implementation of the owner of a lock.
| -rw-r--r-- | libddekit/lock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libddekit/lock.c b/libddekit/lock.c index 1e61b8b6..f64d571b 100644 --- a/libddekit/lock.c +++ b/libddekit/lock.c @@ -33,6 +33,9 @@ void _ddekit_lock_unlock(struct ddekit_lock **mtx) { int _ddekit_lock_owner(struct ddekit_lock **mtx) { - return (int)l4lock_owner(&(*mtx)->lock); + /* The return value is the address of the holder. + * I hope it will be OK. At least, it is OK + * for the current implementation of DDE Linux/BSD */ + return (int) (*mtx)->lock.holder; } |
