libc/pthread: Implement pthread_rwlockattr API

https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_rwlockattr_getpshared.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-01-20 22:06:45 +08:00
committed by Gustavo Henrique Nihei
parent 679544cd32
commit 36b74bab02
7 changed files with 351 additions and 27 deletions
@@ -131,14 +131,6 @@ No support for the following pthread interfaces is provided by NuttX:
attribute of the mutex attributes object.
- ``pthread_mutexattr_setprioceiling``. get and set the prioceiling
attribute of the mutex attributes object.
- ``pthread_rwlockattr_destroy``. destroy and initialize the read-write
lock attributes object.
- ``pthread_rwlockattr_getpshared``. get and set the process-shared
attribute of the read-write lock attributes object.
- ``pthread_rwlockattr_init``. destroy and initialize the read-write
lock attributes object.
- ``pthread_rwlockattr_setpshared``. get and set the process-shared
attribute of the read-write lock attributes object.
- ``pthread_setconcurrency``. get and set the level of concurrency.
.. c:function:: int pthread_attr_init(pthread_attr_t *attr);