smtx_destroy(3) | Library Functions Manual | smtx_destroy(3) |
NAME
smtx_destroy
—
destroy a spinlock
SYNOPSIS
library “threads”
#include <threadse.h>
int
smtx_destroy
(smtx_t
*s);
DESCRIPTION
The function
smtx_destroy
()
will destroy the given spinlock s.
RETURN VALUES
Upon success smtx_destroy
() will return
thrd_success. In case of error
thrd_error will be returned.
SEE ALSO
HISTORY
The smtx_destroy
() function first appeared
in the Adelsbach Enhanced Threading Library. MacOS support was added in
version 1.0.1 using an implementation with atomic variables.
AUTHORS
Jan Adelsbach <jan@jadelsbach.de>
March 30, 2025 | Linux 6.13.6-1-default |