Adelsbach Enhanced Threading Library

Manual Pages (DD-00013-001)

Enhanced Threading Library > smtx_unlock (3)
HTML TXT PDF PS
smtx_unlock(3) Library Functions Manual smtx_unlock(3)

smtx_unlockunlock a previously acquired spinlock.

library “threads”
#include <threadse.h>

int
smtx_unlock(smtx_t *s);

The function () will unlock a previously acquired spinlock s.

Upon success smtx_unlock() will return thrd_success. In case of error thrd_error will be returned.

smtx_init(3) smtx_destroy(3) smtx_lock(3) smtx_trylock(3)

The smtx_unlock() function first appeared in the Adelsbach Enhanced Threading Library.

Jan Adelsbach <jan@jadelsbach.de>

May 9, 2020 Debian