mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 03:44:22 -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;
|
||||
}
|
||||
|
||||
/* misspelled version for backward compatibility */
|
||||
void
|
||||
evthread_enable_lock_debuging(void)
|
||||
{
|
||||
evthread_enable_lock_debugging();
|
||||
}
|
||||
|
||||
void
|
||||
evthread_enable_lock_debugging(void)
|
||||
{
|
||||
struct evthread_lock_callbacks cbs = {
|
||||
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
|
||||
* 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);
|
||||
|
||||
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
|
||||
|
@ -436,7 +436,7 @@ main(int argc, const char **argv)
|
||||
|
||||
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
||||
if (!getenv("EVENT_NO_DEBUG_LOCKS"))
|
||||
evthread_enable_lock_debuging();
|
||||
evthread_enable_lock_debugging();
|
||||
#endif
|
||||
|
||||
tinytest_set_aliases(testaliases);
|
||||
|
@ -594,7 +594,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
#ifndef EVENT__DISABLE_THREAD_SUPPORT
|
||||
evthread_enable_lock_debuging();
|
||||
evthread_enable_lock_debugging();
|
||||
#endif
|
||||
|
||||
return test_ratelimiting();
|
||||
|
Loading…
x
Reference in New Issue
Block a user