diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-28 12:00:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-28 12:01:38 -0400 |
commit | 9cd5acb5114ce00d425c0cca48a396fb591beaf0 (patch) | |
tree | 37b996b5bfe73fe0a7509983a1c5602ab168a8b7 /signal.c | |
parent | 108896abccc288d7675e7ceed7367172ed5ddbd6 (diff) | |
download | libevent-9cd5acb5114ce00d425c0cca48a396fb591beaf0.tar.gz |
Make th_base_lock nonrecursive
This is necessary for making some thread libraries work with
event.c, and might get better performance with others.
The biggest change required here was that we needed to make some
internal code that had previously called event_add and event_del
call the nolock variants.
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -305,7 +305,7 @@ evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short ev if (!sig->ev_signal_added) { - if (event_add(&sig->ev_signal, NULL)) + if (event_add_nolock_(&sig->ev_signal, NULL, 0)) goto err; sig->ev_signal_added = 1; } |