summaryrefslogtreecommitdiff
path: root/evthread.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-14 17:33:02 -0500
committerNick Mathewson <nickm@torproject.org>2011-11-14 17:33:02 -0500
commite78741332985be96f2a44e71226b4adfe55aee7e (patch)
tree2fe0a6db4c7afd03bfc2261ad5d6136a8488f14c /evthread.c
parent4e797f388f736756b1531ce47ef210bd2119515f (diff)
downloadlibevent-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/evthread.c b/evthread.c
index 24d85a85..734b77c5 100644
--- a/evthread.c
+++ b/evthread.c
@@ -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