diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-14 17:33:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-14 17:33:02 -0500 |
commit | e78741332985be96f2a44e71226b4adfe55aee7e (patch) | |
tree | 2fe0a6db4c7afd03bfc2261ad5d6136a8488f14c /evthread.c | |
parent | 4e797f388f736756b1531ce47ef210bd2119515f (diff) | |
download | libevent-e78741332985be96f2a44e71226b4adfe55aee7e.tar.gz |
Don't try to make notifiable event_base when no threading fns are configured
Diffstat (limited to 'evthread.c')
-rw-r--r-- | evthread.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -425,6 +425,12 @@ _evthreadimpl_is_lock_debugging_enabled(void) { return _evthread_lock_debugging_enabled; } + +int +_evthreadimpl_locking_enabled(void) +{ + return _evthread_lock_fns.lock != NULL; +} #endif #endif |