RZ_API void rz_th_lock_leave(RZ_NONNULL RzThreadLock *thl)
Releases a RzThreadLock structure.
RZ_API RZ_OWN RzThreadLock * rz_th_lock_new(bool recursive)
Allocates and initialize a RzThreadLock structure.
RZ_API void rz_th_lock_enter(RZ_NONNULL RzThreadLock *thl)
Acquires a RzThreadLock structure.
int iob_read(io_desc_t *desc, uint8_t *buf, const uint32_t buf_len)
int iob_write(io_desc_t *desc, const uint8_t *buf, const uint32_t buf_len)
io_desc_t * io_desc_new(io_backend_t *iob, void *fp)
static void lock(volatile int *lk)