|
Revision tags: release-2.2.1-alpha, release-2.1.12-stable |
|
| #
ec52e6af |
| 06-Aug-2019 |
dota17 <[email protected]> |
Fix typos in comments (sample/test/event-internal.h)
(cherry picked from commit 9c151f3c3413c5ee6bad498aca84be481196bbc7)
|
|
Revision tags: release-2.1.11-stable, release-2.1.10-stable, release-2.1.9-beta, release-2.0.23-beta |
|
| #
cdd52e7f |
| 23-May-2018 |
Jiri Luznicky <[email protected]> |
Fix missing LIST_HEAD
Despite the presence of 'sys/queue.h' in some stdlib implementations (i.e. uclibc) 'LIST_HEAD' macro can be missing. This fix defines this macro in the same manner as was done
Fix missing LIST_HEAD
Despite the presence of 'sys/queue.h' in some stdlib implementations (i.e. uclibc) 'LIST_HEAD' macro can be missing. This fix defines this macro in the same manner as was done previously for 'TAILQ_'.
Fixes: #539 Closes: #639 (cherry-picked) Backport: 2.1.9 (cherry picked from commit 95918754d2ba7e6bffe0fc74bebed60bd917c10c)
show more ...
|
| #
7f0a7564 |
| 16-Mar-2017 |
Xiang Zhang <[email protected]> |
fix evutil_make_internal_pipe_'s comment that fd[0] for read and f[1] for write
(cherry picked from commit 2e52bace9f9998826bd3819af328efc8d18decf9)
|
| #
9806b126 |
| 13-Mar-2017 |
Azat Khuzhin <[email protected]> |
Merge branch 'cmake-missing-bits'
This patchset adds next missing things (in compare to autotools): - pkgconfig - event_pthreads/event_openssl - compile shared/static libraries always
And some fixe
Merge branch 'cmake-missing-bits'
This patchset adds next missing things (in compare to autotools): - pkgconfig - event_pthreads/event_openssl - compile shared/static libraries always
And some fixes, because it will not build after fixing other things: - export missing symbols for cmake (-fvisibility=hidden)
* cmake-missing-bits: cmake: support visibility for AppleClang too cmake: fix export absolute path and relative path and cleanup a bit cmake: generate and install pkgconfig files cmake: build SHARED and STATIC libraries (like autoconf does) cmake: add missing event_openssl/event_pthreads libraries Export symbols for -fvisibility=hidden (under cmake)
Refs: #246 (cherry picked from commit 489991a2b2628ba1ff4e6879b9f67ec35d224c38)
show more ...
|
|
Revision tags: release-2.1.8-stable, release-2.1.7-rc, release-2.1.6-beta |
|
| #
bfcedee0 |
| 13-Aug-2015 |
Sebastian Hahn <[email protected]> |
Add a prototype for event_disable_debug_mode()
Exporting this function seems rather useless, as debugging mode has to be enabled early and calling this function doesn't allow it to get toggled back
Add a prototype for event_disable_debug_mode()
Exporting this function seems rather useless, as debugging mode has to be enabled early and calling this function doesn't allow it to get toggled back on later.
Fixes a compile warning when using clang 3.6.
Fixes #271 Fixes #224
show more ...
|
| #
2828bdb9 |
| 24-Jul-2015 |
Christopher Wiley <[email protected]> |
Always define missing TAILQ functions from sys/queue.h
On both Android and Ubuntu machines, TAILQ_END is not defined. This header also does not seem to be part of standard BSD sys/queue.h
Fix this
Always define missing TAILQ functions from sys/queue.h
On both Android and Ubuntu machines, TAILQ_END is not defined. This header also does not seem to be part of standard BSD sys/queue.h
Fix this by always defining missing TAILQ_ macros rather than conditioning on a particular macro.
Fixes #267
show more ...
|
| #
38cef641 |
| 25-Mar-2015 |
Greg Hazel <[email protected]> |
fix the return value of event_deferred_cb_schedule_
|
|
Revision tags: release-2.0.22-stable, release-1.4.15-stable, release-2.1.5-beta, release-2.1.4-alpha |
|
| #
5173bef5 |
| 30-Dec-2013 |
Andrew Sweeney <[email protected]> |
Add access to max event count stats
This commit provides an interface for accessing and resetting the maximum number of events in a given period. This information provides better insight into event
Add access to max event count stats
This commit provides an interface for accessing and resetting the maximum number of events in a given period. This information provides better insight into event queue pressure.
show more ...
|
|
Revision tags: release-2.1.3-alpha |
|
| #
a800b913 |
| 26-Apr-2013 |
Nick Mathewson <[email protected]> |
More documentation for finalization feature
|
| #
8eedeabe |
| 28-Mar-2013 |
Nick Mathewson <[email protected]> |
Implement event_finalize() and related functions to avoid certain deadlocks
|
|
Revision tags: release-2.1.2-alpha, release-2.0.21-stable |
|
| #
e3b2e086 |
| 16-Nov-2012 |
Nick Mathewson <[email protected]> |
Add an event_remove_timer() to remove timer on an event without deleting it
|
|
Revision tags: release-2.0.20-stable, release-2.0.19-stable, release-2.1.1-alpha, release-2.0.18-stable, release-2.0.17-stable, release-2.0.16-stable, release-2.0.15-stable, release-2.0.14-stable, release-2.0.13-stable |
|
| #
c17dd591 |
| 15-Jul-2011 |
Nick Mathewson <[email protected]> |
Free dangling event_once objects on event_base_free()
This patch makes us keep event_once objects in a doubly linked list so we can free any once that haven't triggered when we call event_base_free(
Free dangling event_once objects on event_base_free()
This patch makes us keep event_once objects in a doubly linked list so we can free any once that haven't triggered when we call event_base_free().
show more ...
|
| #
232055ef |
| 07-Sep-2012 |
Nick Mathewson <[email protected]> |
Tweak patch for event_base_foreach_event()
* Fix whitespace * Explain return value from callback function * Reinstate return value so that caller can tell whether forech exited early. * Rename eve
Tweak patch for event_base_foreach_event()
* Fix whitespace * Explain return value from callback function * Reinstate return value so that caller can tell whether forech exited early. * Rename event_base_foreach_event_() to event_base_foreach_event_nolock_(). * Use event_base_foreach_event_cb_fn typedef in more places * Be more dire about undefined behavior.
show more ...
|
| #
84fd6d75 |
| 07-Sep-2012 |
Roman Puls <[email protected]> |
Expose event_base_foreach_event() as a public API.
|
| #
9cd5acb5 |
| 28-Jun-2012 |
Nick Mathewson <[email protected]> |
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 neede
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.
show more ...
|
| #
c0e425ab |
| 09-May-2012 |
Nick Mathewson <[email protected]> |
Restore our priority-inversion-prevention code with deferreds
Back when deferred_cb stuff had its own queue, the queue was always executed, but we never ran more than 16 callbacks per iteration. Tha
Restore our priority-inversion-prevention code with deferreds
Back when deferred_cb stuff had its own queue, the queue was always executed, but we never ran more than 16 callbacks per iteration. That made for two problems:
1: Because deferred_cb stuff would always run, and had no priority, it could cause priority inversion.
2: It doesn't respect the max_dispatch_interval code.
Then, when I refactored deferred_cb to be a special case of event_callback, that solved the above issues, but made for two more issues:
3: Because deferred_cb stuff would always get the default priority, it could could low-priority bufferevents to get too much priority.
4: With code like bufferevent_pair, it's easy to get into a situation where two deferreds keep adding one another, preventing the event loop from ever actually scanning for more events.
This commit fixes the above by giving deferreds a better notion of priorities, and by limiting the number of deferreds that can be added to the _current_ loop iteration's active queues. (Extra deferreds are put into the active_later state.)
That isn't an all-purpose priority inversion solution, of course: for that, you may need to mess around with max_dispatch_interval.
show more ...
|
| #
ae2b84b2 |
| 06-Apr-2012 |
Nick Mathewson <[email protected]> |
Replace deferred_cbs with event_callback-based implementation.
|
| #
745a63db |
| 06-Apr-2012 |
Nick Mathewson <[email protected]> |
Add "active later" event_callbacks to supersede deferred
An event or event callback can now be in an additional state: "active later". When an event is in this state, it will become active the next
Add "active later" event_callbacks to supersede deferred
An event or event callback can now be in an additional state: "active later". When an event is in this state, it will become active the next time we run through the event loop. This lets us do what we wanted to with deferred callbacks: make a type of active thing that avoids infinite circular regress in a way that starves other events or exhausts the stack. It improves on deferred callbacks by respecting priorities, and by having a non-kludgy way to avoid event starvation.
show more ...
|
| #
cba59e53 |
| 05-Apr-2012 |
Nick Mathewson <[email protected]> |
Refactor the callback part of an event into its own event_callback type
This shouldn't have any visible effect, but it's necessary or advisible for a few changes and cleanups I would like to make, i
Refactor the callback part of an event into its own event_callback type
This shouldn't have any visible effect, but it's necessary or advisible for a few changes and cleanups I would like to make, including: * Replacing the deferred queue with a type that works more as if it were an event. * Introducing a useful "activate this on the next round through the event loop" state for events and deferreds. * Adding an "on until further notice" status for events, to allow a saner win32-hybrid approach. * Eventually, making all user callbacks first-class things with event-like semantics.
show more ...
|
| #
2bfda401 |
| 30-Apr-2012 |
Nick Mathewson <[email protected]> |
If a higher-priority event becomes active, don't continue running events of the current priority.
Bug found by Ralph Castain.
|
| #
f5e4eb05 |
| 20-Apr-2012 |
Nick Mathewson <[email protected]> |
Refactor monotonic timer handling into a new type and set of functions; add a gettimeofday-based ratcheting implementation
Now, event.c can always assume that we have a monotonic timer; this makes e
Refactor monotonic timer handling into a new type and set of functions; add a gettimeofday-based ratcheting implementation
Now, event.c can always assume that we have a monotonic timer; this makes event.c easier to write.
show more ...
|
| #
d5e1d5ad |
| 17-Apr-2012 |
Nick Mathewson <[email protected]> |
Implement a GetTickCount-based monotonic timer for Windows
|
| #
55780a70 |
| 17-Apr-2012 |
Nick Mathewson <[email protected]> |
On Linux, use CLOCK_MONOTONIC_COARSE by default
You can make it use CLOCK_MONOTONIC again by setting the EVENT_BASE_FLAG_PRECISE_TIMER flag in the event_config.
|
| #
1fbef7d5 |
| 17-Apr-2012 |
Nick Mathewson <[email protected]> |
Move use_monotonic and friends into event_base
The use_monotonic field used to be a static field set up at library setup. Unfortunately, this makes it hard to give the user a way to make speed/accu
Move use_monotonic and friends into event_base
The use_monotonic field used to be a static field set up at library setup. Unfortunately, this makes it hard to give the user a way to make speed/accuracy tradeoffs about time. Moving it into event_base should let the clock implementation become configurable.
show more ...
|
| #
b8fd6f91 |
| 09-Apr-2012 |
Nick Mathewson <[email protected]> |
Use mach_absolute_time() for monotonic clock support on OSX.
|