Remove malloc_mutex_trylock().

Remove malloc_mutex_trylock(); it has not been used for quite some time.
This commit is contained in:
Jason Evans 2012-03-24 19:36:27 -07:00
parent 41b6afb834
commit 1e6138c88c

View File

@ -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)
{