summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_mutex.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-05-30 00:21:52 +0000
committerkan <kan@FreeBSD.org>2003-05-30 00:21:52 +0000
commita22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d (patch)
tree94d7f73e2932ac623f1590991875a38731aca104 /lib/libkse/thread/thr_mutex.c
parent51dd2dd2b3fe2cc5a81d2a41ffc4166698a4b22f (diff)
downloadFreeBSD-src-a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d.zip
FreeBSD-src-a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d.tar.gz
Attempt to eliminate PLT relocations from rwlock aquire/release
path, making them suitable for direct use by the dynamic loader. Register libpthread-specific locking API with rtld on startup. This still has some rough edges with signals which should be addresses later. Approved by: re (scottl)
Diffstat (limited to 'lib/libkse/thread/thr_mutex.c')
-rw-r--r--lib/libkse/thread/thr_mutex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c
index 4e3e79b..2df59ef 100644
--- a/lib/libkse/thread/thr_mutex.c
+++ b/lib/libkse/thread/thr_mutex.c
@@ -718,6 +718,8 @@ __pthread_mutex_lock(pthread_mutex_t *m)
return (ret);
}
+__strong_reference(__pthread_mutex_lock, _thr_mutex_lock);
+
int
_pthread_mutex_lock(pthread_mutex_t *m)
{
@@ -748,6 +750,8 @@ _pthread_mutex_unlock(pthread_mutex_t *m)
return (mutex_unlock_common(m, /* add reference */ 0));
}
+__strong_reference(_pthread_mutex_unlock, _thr_mutex_unlock);
+
int
_mutex_cv_unlock(pthread_mutex_t *m)
{
OpenPOWER on IntegriCloud