mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
libs: fix the default value of process-shared attribute
pass ltp case: open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/2-1.c Reference: https://pubs.opengroup.org/onlinepubs/009696899/functions/pthread_mutexattr_getpshared.html Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
parent
67f5fc19eb
commit
a6fa9db91e
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ int pthread_condattr_init(FAR pthread_condattr_t *attr)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
attr->clockid = CLOCK_REALTIME;
|
attr->clockid = CLOCK_REALTIME;
|
||||||
|
attr->pshared = PTHREAD_PROCESS_PRIVATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
linfo("Returning %d\n", ret);
|
linfo("Returning %d\n", ret);
|
||||||
|
|
Loading…
Reference in a new issue