int
sem_init (sem_t *sem, int pshared, unsigned int value)
¶Preliminary: | MT-Safe | AS-Safe | AC-Unsafe corrupt | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_init.3.html. See Linux (The Linux Kernel).
int
sem_destroy (sem_t *sem)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_destroy.3.html. See Linux (The Linux Kernel).
sem_t *
sem_open (const char *name, int oflag, ...)
¶Preliminary: | MT-Safe | AS-Unsafe init | AC-Unsafe init | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_open.3.html. See Linux (The Linux Kernel).
int
sem_close (sem_t *sem)
¶Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_close.3.html. See Linux (The Linux Kernel).
int
sem_unlink (const char *name)
¶Preliminary: | MT-Safe | AS-Unsafe init | AC-Unsafe corrupt | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_unlink.3.html. See Linux (The Linux Kernel).
int
sem_wait (sem_t *sem)
¶Preliminary: | MT-Safe | AS-Safe | AC-Unsafe corrupt | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_wait.3.html. See Linux (The Linux Kernel).
int
sem_timedwait (sem_t *sem, const struct timespec *abstime)
¶Preliminary: | MT-Safe | AS-Safe | AC-Unsafe corrupt | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_timedwait.3.html. See Linux (The Linux Kernel).
int
sem_clockwait (sem_t *sem, clockid_t clockid, const struct timespec *abstime)
¶Preliminary: | MT-Safe | AS-Unsafe lock | AC-Unsafe lock | See POSIX Safety Concepts.
Behaves like sem_timedwait
except the time abstime is measured
against the clock specified by clockid rather than
CLOCK_REALTIME
. Currently, clockid must be either
CLOCK_MONOTONIC
or CLOCK_REALTIME
.
int
sem_trywait (sem_t *sem)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_trywait.3.html. See Linux (The Linux Kernel).
int
sem_post (sem_t *sem)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_post.3.html. See Linux (The Linux Kernel).
int
sem_getvalue (sem_t *sem, int *sval)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
This documentation is a stub. For additional information on this function, consult the manual page https://man7.org/linux/man-pages/man3/sem_getvalue.3.html. See Linux (The Linux Kernel).