mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename CONFIG_MUTEX_TYPES to CONFIG_PTHREAD_MUTEX_TYPES
This commit is contained in:
+2
-2
@@ -113,10 +113,10 @@
|
||||
"pthread_condattr_init","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_condattr_t *"
|
||||
"pthread_mutexattr_destroy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *"
|
||||
"pthread_mutexattr_getpshared","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *","FAR int *"
|
||||
"pthread_mutexattr_gettype","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_MUTEX_TYPES)","int","FAR const pthread_mutexattr_t *","int *"
|
||||
"pthread_mutexattr_gettype","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_PTHREAD_MUTEX_TYPES)","int","FAR const pthread_mutexattr_t *","int *"
|
||||
"pthread_mutexattr_init","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *"
|
||||
"pthread_mutexattr_setpshared","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutexattr_t *","int "
|
||||
"pthread_mutexattr_settype","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_MUTEX_TYPES)","int","pthread_mutexattr_t *","int"
|
||||
"pthread_mutexattr_settype","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_PTHREAD_MUTEX_TYPES)","int","pthread_mutexattr_t *","int"
|
||||
"puts","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","int","FAR const char *"
|
||||
"qsort","stdlib.h","","void","void *","size_t","size_t","int(*)(const void *","FAR const void *)"
|
||||
"rand","stdlib.h","","int"
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 82 and column 22.
|
@@ -67,7 +67,7 @@ int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type)
|
||||
{
|
||||
if (attr != NULL && type != NULL)
|
||||
{
|
||||
#ifdef CONFIG_MUTEX_TYPES
|
||||
#ifdef CONFIG_PTHREAD_MUTEX_TYPES
|
||||
*type = attr->type;
|
||||
#else
|
||||
*type = PTHREAD_MUTEX_NORMAL;
|
||||
|
||||
@@ -81,7 +81,7 @@ int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
|
||||
attr->proto = SEM_PRIO_INHERIT;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MUTEX_TYPES
|
||||
#ifdef CONFIG_PTHREAD_MUTEX_TYPES
|
||||
attr->type = PTHREAD_MUTEX_DEFAULT;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
|
||||
{
|
||||
if (attr && type >= PTHREAD_MUTEX_NORMAL && type <= PTHREAD_MUTEX_RECURSIVE)
|
||||
{
|
||||
#ifdef CONFIG_MUTEX_TYPES
|
||||
#ifdef CONFIG_PTHREAD_MUTEX_TYPES
|
||||
attr->type = type;
|
||||
#else
|
||||
if (type != PTHREAD_MUTEX_NORMAL)
|
||||
|
||||
Reference in New Issue
Block a user