summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-11-04 19:56:12 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-11-04 19:56:12 +0000
commitdc17710e7c2ddc17661572451907938bde9c3cfc (patch)
treea40610805cd5440ab26bb39d590a3dded29bddbc /lib/libpthread
parentee574ccc3ea9119e8c85602b930c9d3178cbb2d7 (diff)
Notes
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_pspinlock.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_pspinlock.c b/lib/libpthread/thread/thr_pspinlock.c
index de26750e9c80..b58d7120d4ea 100644
--- a/lib/libpthread/thread/thr_pspinlock.c
+++ b/lib/libpthread/thread/thr_pspinlock.c
@@ -34,8 +34,14 @@
#define SPIN_COUNT 10000
+__weak_reference(_pthread_spin_init, pthread_spin_init);
+__weak_reference(_pthread_spin_destroy, pthread_spin_destroy);
+__weak_reference(_pthread_spin_trylock, pthread_spin_trylock);
+__weak_reference(_pthread_spin_lock, pthread_spin_lock);
+__weak_reference(_pthread_spin_unlock, pthread_spin_unlock);
+
int
-pthread_spin_init(pthread_spinlock_t *lock, int pshared)
+_pthread_spin_init(pthread_spinlock_t *lock, int pshared)
{
struct pthread_spinlock *lck;
int ret;
@@ -55,7 +61,7 @@ pthread_spin_init(pthread_spinlock_t *lock, int pshared)
}
int
-pthread_spin_destroy(pthread_spinlock_t *lock)
+_pthread_spin_destroy(pthread_spinlock_t *lock)
{
int ret;
@@ -73,7 +79,7 @@ pthread_spin_destroy(pthread_spinlock_t *lock)
}
int
-pthread_spin_trylock(pthread_spinlock_t *lock)
+_pthread_spin_trylock(pthread_spinlock_t *lock)
{
struct pthread_spinlock *lck;
struct pthread *self = _pthread_self();
@@ -98,7 +104,7 @@ pthread_spin_trylock(pthread_spinlock_t *lock)
}
int
-pthread_spin_lock(pthread_spinlock_t *lock)
+_pthread_spin_lock(pthread_spinlock_t *lock)
{
struct pthread_spinlock *lck;
struct pthread *self = _pthread_self();
@@ -132,7 +138,7 @@ pthread_spin_lock(pthread_spinlock_t *lock)
}
int
-pthread_spin_unlock(pthread_spinlock_t *lock)
+_pthread_spin_unlock(pthread_spinlock_t *lock)
{
struct pthread_spinlock *lck;
int ret;