diff options
author | Sharvil Nanavati <sharvil@google.com> | 2015-06-12 10:56:17 -0700 |
---|---|---|
committer | Sharvil Nanavati <sharvil@google.com> | 2015-06-12 10:56:17 -0700 |
commit | 64e9e71cdb7d88397e510e1986d494b797ed3b45 (patch) | |
tree | 1355a7aebaf1ad0d877ee92b7368129cee617afe /libc/include | |
parent | ea248d9ca80d4ef731d821648711094aa03b0318 (diff) | |
download | bionic-64e9e71cdb7d88397e510e1986d494b797ed3b45.zip bionic-64e9e71cdb7d88397e510e1986d494b797ed3b45.tar.gz bionic-64e9e71cdb7d88397e510e1986d494b797ed3b45.tar.bz2 |
Define nonportable pthread mutex macros with the _NP suffix.
Change-Id: I1066352e5b2607f64daf6aeb0030d0bbe88ead8d
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/pthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/include/pthread.h b/libc/include/pthread.h index c32890b..334cf7a 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -56,6 +56,9 @@ typedef struct { #define PTHREAD_RECURSIVE_MUTEX_INITIALIZER {__PTHREAD_RECURSIVE_MUTEX_INIT_VALUE __RESERVED_INITIALIZER} #define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER {__PTHREAD_ERRORCHECK_MUTEX_INIT_VALUE __RESERVED_INITIALIZER} +#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP PTHREAD_RECURSIVE_MUTEX_INITIALIZER +#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP PTHREAD_ERRORCHECK_MUTEX_INITIALIZER + enum { PTHREAD_MUTEX_NORMAL = 0, PTHREAD_MUTEX_RECURSIVE = 1, |