mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Completely remove the (mostly-removed) obsolete thread functions.
This commit is contained in:
parent
9b5c19ac87
commit
3808168d21
21
evthread.c
21
evthread.c
@ -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 {
|
struct debug_lock {
|
||||||
unsigned locktype;
|
unsigned locktype;
|
||||||
unsigned long held_by;
|
unsigned long held_by;
|
||||||
|
@ -72,20 +72,6 @@ extern "C" {
|
|||||||
|
|
||||||
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
|
#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
|
#define EVTHREAD_LOCK_API_VERSION 1
|
||||||
|
|
||||||
/** A recursive lock is one that can be acquired multiple times at once by the
|
/** A recursive lock is one that can be acquired multiple times at once by the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user