Completely remove the (mostly-removed) obsolete thread functions.

This commit is contained in:
Nick Mathewson 2010-08-10 15:02:50 -04:00
parent 9b5c19ac87
commit 3808168d21
2 changed files with 0 additions and 35 deletions

View File

@ -74,27 +74,6 @@ evthread_set_lock_callbacks(const struct evthread_lock_callbacks *cbs)
}
}
static void
api_error(void)
{
event_errx(1, "evthread_set_locking_callback and "
"evthread_set_lock_create_callbacks are obsolete; use "
"evthread_set_lock_callbacks instead.");
}
void
evthread_set_locking_callback(void (*locking_fn)(int mode, void *lock))
{
api_error();
}
void
evthread_set_lock_create_callbacks(void *(*alloc_fn)(void),
void (*free_fn)(void *))
{
api_error();
}
struct debug_lock {
unsigned locktype;
unsigned long held_by;

View File

@ -72,20 +72,6 @@ extern "C" {
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
/**
@deprecated Use evthread_set_lock_callbacks instead. This API will
go away before Libevent 2.0.x-stable.
*/
void evthread_set_lock_create_callbacks(
void *(*alloc_fn)(void), void (*free_fn)(void *));
/**
@deprecated Use evthread_set_lock_callbacks instead. This API will
go away before Libevent 2.0.x-stable.
*/
void evthread_set_locking_callback(
void (*locking_fn)(int mode, void *lock));
#define EVTHREAD_LOCK_API_VERSION 1
/** A recursive lock is one that can be acquired multiple times at once by the