summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2012-03-25 02:36:27 (GMT)
committerJason Evans <jasone@canonware.com>2012-03-25 02:36:27 (GMT)
commit1e6138c88c7f3bb1f0e8fb785080ac5abc24210c (patch)
treebfe56505deaaad9c2d0194a61a9957595be10a29
parent41b6afb834b1f5250223678c52bd4f013d4234f6 (diff)
downloadjemalloc-1e6138c88c7f3bb1f0e8fb785080ac5abc24210c.zip
jemalloc-1e6138c88c7f3bb1f0e8fb785080ac5abc24210c.tar.gz
jemalloc-1e6138c88c7f3bb1f0e8fb785080ac5abc24210c.tar.bz2
Remove malloc_mutex_trylock().
Remove malloc_mutex_trylock(); it has not been used for quite some time.
-rw-r--r--include/jemalloc/internal/mutex.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/jemalloc/internal/mutex.h b/include/jemalloc/internal/mutex.h
index 98f2cba..ad4f9c2 100644
--- a/include/jemalloc/internal/mutex.h
+++ b/include/jemalloc/internal/mutex.h
@@ -41,7 +41,6 @@ void malloc_mutex_postfork_child(malloc_mutex_t *mutex);
#ifndef JEMALLOC_ENABLE_INLINE
void malloc_mutex_lock(malloc_mutex_t *mutex);
-bool malloc_mutex_trylock(malloc_mutex_t *mutex);
void malloc_mutex_unlock(malloc_mutex_t *mutex);
#endif
@@ -59,20 +58,6 @@ malloc_mutex_lock(malloc_mutex_t *mutex)
}
}
-JEMALLOC_INLINE bool
-malloc_mutex_trylock(malloc_mutex_t *mutex)
-{
-
- if (isthreaded) {
-#ifdef JEMALLOC_OSSPIN
- return (OSSpinLockTry(mutex) == false);
-#else
- return (pthread_mutex_trylock(mutex) != 0);
-#endif
- } else
- return (false);
-}
-
JEMALLOC_INLINE void
malloc_mutex_unlock(malloc_mutex_t *mutex)
{