mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
pthread_mutexattr_getprotocol: modify prototype
MIRTOS-116 modify the return value according to posix standard Change-Id: I6e32a8f7a5cac85fe7a395a8115710fdff61d985 Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
0027842652
commit
4a0f96fd4f
1 changed files with 4 additions and 2 deletions
|
|
@ -70,9 +70,11 @@ int pthread_mutexattr_getprotocol(FAR const pthread_mutexattr_t *attr,
|
|||
|
||||
#ifdef CONFIG_PRIORITY_INHERITANCE
|
||||
linfo("Returning %d\n", attr->proto);
|
||||
return attr->proto;
|
||||
*protocol = attr->proto;
|
||||
#else
|
||||
linfo("Returning %d\n", PTHREAD_PRIO_NONE);
|
||||
return PTHREAD_PRIO_NONE;
|
||||
*protocol = PTHREAD_PRIO_NONE;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue