65 #define __xroad_lock_unlock_dtor__ __attribute__((__cleanup__(xroad_lock_unlock_dtor)))
Definition: xroad_lock.h:16
void xroad_lock_lock_ex(xroad_lock_t *l, uint32_t locker_id)
bool xroad_lock_unlock_ex(xroad_lock_t *l, uint32_t locker_id)
Release lock assuming it belongs to locker_id.
int32_t xroad_lock_get_pid(const xroad_lock_t *l)
Get pid of the process holding the lock.
int32_t xroad_lock_number_lock(const xroad_lock_t *l)
Get the number (depth) of locks held by the owning process (recursive lock)
int32_t xroad_lock_get_version(const xroad_lock_t *l)
Get lock version (generation)