diff options
author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2005-08-19 21:31:42 +0000 |
---|---|---|
committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2005-08-19 21:31:42 +0000 |
commit | ad7c49168f8b32fedbe11f4675cb7d4bd3b896e6 (patch) | |
tree | 67c1a39113f2a15d17e7af116bbeebff1d3c81d4 /lib/libkse/thread | |
parent | 7cd5160a0bfe59c045b702180490fdb4d1a423ea (diff) | |
download | src-ad7c49168f8b32fedbe11f4675cb7d4bd3b896e6.tar.gz src-ad7c49168f8b32fedbe11f4675cb7d4bd3b896e6.zip |
- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST.
OK'ed by: deischen
Notes
Notes:
svn path=/head/; revision=149298
Diffstat (limited to 'lib/libkse/thread')
-rw-r--r-- | lib/libkse/thread/thr_mattr_kind_np.c | 4 | ||||
-rw-r--r-- | lib/libkse/thread/thr_mutex.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkse/thread/thr_mattr_kind_np.c b/lib/libkse/thread/thr_mattr_kind_np.c index f3d30ff075b7..2e9f3338ca22 100644 --- a/lib/libkse/thread/thr_mattr_kind_np.c +++ b/lib/libkse/thread/thr_mattr_kind_np.c @@ -71,7 +71,7 @@ int _pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) { int ret; - if (attr == NULL || *attr == NULL || type >= MUTEX_TYPE_MAX) { + if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) { errno = EINVAL; ret = -1; } else { @@ -87,7 +87,7 @@ _pthread_mutexattr_gettype(pthread_mutexattr_t *attr, int *type) int ret; if (attr == NULL || *attr == NULL || (*attr)->m_type >= - MUTEX_TYPE_MAX) { + PTHREAD_MUTEX_TYPE_MAX) { ret = EINVAL; } else { *type = (*attr)->m_type; diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c index b502c15af818..e095ac5cc854 100644 --- a/lib/libkse/thread/thr_mutex.c +++ b/lib/libkse/thread/thr_mutex.c @@ -128,7 +128,7 @@ __pthread_mutex_init(pthread_mutex_t *mutex, /* Check mutex type: */ else if (((*mutex_attr)->m_type < PTHREAD_MUTEX_ERRORCHECK) || - ((*mutex_attr)->m_type >= MUTEX_TYPE_MAX)) + ((*mutex_attr)->m_type >= PTHREAD_MUTEX_TYPE_MAX)) /* Return an invalid argument error: */ ret = EINVAL; |