1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Per discussion on -threads, rename _islocked_np() to _isowned_np().

This commit is contained in:
Dag-Erling Smørgrav 2008-02-06 19:34:31 +00:00
parent 3861dd1e8c
commit 1cbdac2668
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176049
3 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ int pthread_mutex_getspinloops_np(pthread_mutex_t *mutex, int *count);
int pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
int pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count);
int pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
int pthread_mutex_islocked_np(pthread_mutex_t *mutex);
int pthread_mutex_isowned_np(pthread_mutex_t *mutex);
int pthread_single_np(void);
void pthread_suspend_all_np(void);
int pthread_suspend_np(pthread_t);

View File

@ -398,14 +398,14 @@ local:
FBSD_1.1 {
global:
pthread_mutex_islocked_np;
pthread_mutex_isowned_np;
local:
*;
} FBSD_1.0;
FBSDprivate_1.1 {
global:
_pthread_mutex_islocked_np;
_pthread_mutex_isowned_np;
local:
*;
} FBSDprivate_1.0;

View File

@ -87,7 +87,7 @@ int __pthread_mutex_setspinloops_np(pthread_mutex_t *mutex, int count);
int _pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
int _pthread_mutex_getyieldloops_np(pthread_mutex_t *mutex, int *count);
int __pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count);
int _pthread_mutex_islocked_np(pthread_mutex_t *mutex);
int _pthread_mutex_isowned_np(pthread_mutex_t *mutex);
static int mutex_self_trylock(pthread_mutex_t);
static int mutex_self_lock(pthread_mutex_t,
@ -112,7 +112,7 @@ __weak_reference(_pthread_mutex_getspinloops_np, pthread_mutex_getspinloops_np);
__weak_reference(__pthread_mutex_setyieldloops_np, pthread_mutex_setyieldloops_np);
__weak_reference(_pthread_mutex_getyieldloops_np, pthread_mutex_getyieldloops_np);
__weak_reference(_pthread_mutex_islocked_np, pthread_mutex_islocked_np);
__weak_reference(_pthread_mutex_isowned_np, pthread_mutex_isowned_np);
static int
mutex_init(pthread_mutex_t *mutex,
@ -867,7 +867,7 @@ __pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count)
}
int
_pthread_mutex_islocked_np(pthread_mutex_t *mutex)
_pthread_mutex_isowned_np(pthread_mutex_t *mutex)
{
struct pthread *curthread = _get_curthread();
int ret;