mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
Rename event_enable_lock_debuging() to ..._debugging()
Keep the misspelled version around for backward compatibility Based on a patch by Diwaker Gupta.
This commit is contained in:
parent
e3d010c8f6
commit
07e132e3ad
@ -275,8 +275,15 @@ debug_cond_wait(void *cond_, void *lock_, const struct timeval *tv)
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* misspelled version for backward compatibility */
|
||||||
void
|
void
|
||||||
evthread_enable_lock_debuging(void)
|
evthread_enable_lock_debuging(void)
|
||||||
|
{
|
||||||
|
evthread_enable_lock_debugging();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
evthread_enable_lock_debugging(void)
|
||||||
{
|
{
|
||||||
struct evthread_lock_callbacks cbs = {
|
struct evthread_lock_callbacks cbs = {
|
||||||
EVTHREAD_LOCK_API_VERSION,
|
EVTHREAD_LOCK_API_VERSION,
|
||||||
|
@ -217,6 +217,10 @@ int evthread_use_pthreads(void);
|
|||||||
* If you're going to call this function, you must do so before any locks are
|
* If you're going to call this function, you must do so before any locks are
|
||||||
* allocated.
|
* allocated.
|
||||||
**/
|
**/
|
||||||
|
void evthread_enable_lock_debugging(void);
|
||||||
|
|
||||||
|
/* Old (misspelled) version: This is deprecated; use
|
||||||
|
* evthread_enable_log_debugging instead. */
|
||||||
void evthread_enable_lock_debuging(void);
|
void evthread_enable_lock_debuging(void);
|
||||||
|
|
||||||
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
|
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
|
||||||
|
@ -436,7 +436,7 @@ main(int argc, const char **argv)
|
|||||||
|
|
||||||
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
||||||
if (!getenv("EVENT_NO_DEBUG_LOCKS"))
|
if (!getenv("EVENT_NO_DEBUG_LOCKS"))
|
||||||
evthread_enable_lock_debuging();
|
evthread_enable_lock_debugging();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tinytest_set_aliases(testaliases);
|
tinytest_set_aliases(testaliases);
|
||||||
|
@ -594,7 +594,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
||||||
evthread_enable_lock_debuging();
|
evthread_enable_lock_debugging();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return test_ratelimiting();
|
return test_ratelimiting();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user