25#ifndef __KOS_RECURSIVE_LOCK_H
26#define __KOS_RECURSIVE_LOCK_H
96 __depr(
"Use mutexes instead.");
Definitions for builtin attributes and compiler directives.
#define __depr(m)
Mark something as deprecated, with an informative message.
Definition cdefs.h:119
int rlock_lock(recursive_lock_t *l) __depr("Use mutexes instead.")
Lock a recursive lock.
int rlock_unlock(recursive_lock_t *l) __depr("Use mutexes instead.")
Unlock a recursive lock.
void rlock_destroy(recursive_lock_t *l) __depr("Use mutexes instead.")
Destroy a recursive lock.
int rlock_lock_timed(recursive_lock_t *l, int timeout) __depr("Use mutexes instead.")
Lock a recursive lock (with a timeout).
recursive_lock_t * rlock_create(void) __depr("Use mutexes instead.")
Allocate a new recursive lock.
int rlock_trylock(recursive_lock_t *l) __depr("Use mutexes instead.")
Attempt to lock a recursive lock without blocking.
mutex_t recursive_lock_t
Recursive lock structure.
Definition recursive_lock.h:41
int rlock_is_locked(recursive_lock_t *l) __depr("Use mutexes instead.")
Check if a recursive lock is currently held by any thread.
Mutual exclusion lock type.
Definition mutex.h:68