Skip to content

Commit 4d15ba6

Browse files
committed
doc: services: portability: posix: support for POSIX_SPIN_LOCKS
Ensure `POSIX_SPIN_LOCKS` are documented as part of the mandatory option requirements according to IEEE Std 1003.1-2017. Additionally, list the functions implemented according to the standard. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 0d6d90c commit 4d15ba6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/services/portability/posix.rst

+12
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ as POSIX.1-2017).
5959
POSIX_FILE_LOCKING,
6060
POSIX_SIGNALS,
6161
POSIX_SINGLE_PROCESS,
62+
POSIX_SPIN_LOCKS,yes
6263
POSIX_THREADS_BASE,yes
6364
XSI_THREAD_MUTEX_EXT,yes
6465
XSI_THREADS_EXT,yes
@@ -93,6 +94,7 @@ Zephyr.
9394
_POSIX_REALTIME_SIGNALS,
9495
_POSIX_SEMAPHORES,yes
9596
_POSIX_SHARED_MEMORY_OBJECTS,
97+
_POSIX_SPIN_LOCKS,yes
9698
_POSIX_SYNCHRONIZED_IO,
9799
_POSIX_THREAD_ATTR_STACKADDR,yes
98100
_POSIX_THREAD_ATTR_STACKSIZE,yes
@@ -385,6 +387,16 @@ required for error and event handling.
385387
igsuspend(),
386388
sigwait()
387389

390+
.. csv-table:: POSIX_SPIN_LOCKS
391+
:header: API, Supported
392+
:widths: 50,10
393+
394+
pthread_spin_destroy(),yes
395+
pthread_spin_init(),yes
396+
pthread_spin_lock(),yes
397+
pthread_spin_trylock(),yes
398+
pthread_spin_unlock(),yes
399+
388400

389401
POSIX_DEVICE_IO
390402
+++++++++++++++

0 commit comments

Comments
 (0)