pthread: fix typo with CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
460d94729a
commit
fb852440af
@ -44,8 +44,6 @@
|
|||||||
* Returned Value:
|
* Returned Value:
|
||||||
* 0 if successful. Otherwise, an error code.
|
* 0 if successful. Otherwise, an error code.
|
||||||
*
|
*
|
||||||
* Assumptions:
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
|
int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
|
||||||
@ -63,7 +61,7 @@ int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
|
|||||||
attr->pshared = 0;
|
attr->pshared = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_PRIORITY_INHERITANCE
|
#ifdef CONFIG_PRIORITY_INHERITANCE
|
||||||
# ifdef PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
|
# ifdef CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
|
||||||
attr->proto = PTHREAD_PRIO_INHERIT;
|
attr->proto = PTHREAD_PRIO_INHERIT;
|
||||||
# else
|
# else
|
||||||
attr->proto = PTHREAD_PRIO_NONE;
|
attr->proto = PTHREAD_PRIO_NONE;
|
||||||
|
@ -44,12 +44,11 @@
|
|||||||
* Create a mutex
|
* Create a mutex
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* None
|
* mutex - A reference to the mutex to be initialized
|
||||||
|
* attr - Mutex attribute object to be used
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* None
|
* 0 if successful. Otherwise, an error code.
|
||||||
*
|
|
||||||
* Assumptions:
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@ -61,7 +60,7 @@ int pthread_mutex_init(FAR pthread_mutex_t *mutex,
|
|||||||
uint8_t type = PTHREAD_MUTEX_DEFAULT;
|
uint8_t type = PTHREAD_MUTEX_DEFAULT;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PRIORITY_INHERITANCE
|
#ifdef CONFIG_PRIORITY_INHERITANCE
|
||||||
# ifdef PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
|
# ifdef CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
|
||||||
uint8_t proto = PTHREAD_PRIO_INHERIT;
|
uint8_t proto = PTHREAD_PRIO_INHERIT;
|
||||||
# else
|
# else
|
||||||
uint8_t proto = PTHREAD_PRIO_NONE;
|
uint8_t proto = PTHREAD_PRIO_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user