Previously, events that were disabled using EVENT_NO* were left out of
event_get_supported_methods(). This was wrong, broke unit tests
(under some circumstances) and left the user with no good way to tell
which methods were actually compiled in.
Fixes bug
2821015.
svn:r1344
o Mitigate a race condition when using socket bufferevents in multiple threads.
o Use AC_SEARCH_LIBS, not AC_CHECK_LIB to avoid needless library use.
o Do not allow event_del(ev) to return while that event's callback is executing in another thread. This fixes a nasty race condition.
-
+ o event_get_supported_methods() now lists methods that have been disabled with the EVENT_NO* environment options.
Changes in 2.0.1-alpha:
o free minheap on event_base_free(); from Christopher Layne
/* populate the array with the supported methods */
for (k = 0, i = 0; eventops[k] != NULL; ++k) {
- if (event_is_method_disabled(eventops[k]->name))
- continue;
tmp[i++] = eventops[k]->name;
}
tmp[i] = NULL;