Nick Mathewson
838d0a81c3
Document many internal functions and pieces of code.
...
svn:r1181
2009-04-17 06:55:08 +00:00
Nick Mathewson
4868f4d217
Initial support for a lightweight 'deferred callbacks'.
...
A 'deferred callback' is just a function that we've queued in the
event base. This ability is needed for some mt stuff, and for complex
callback chains. For internal use only.
svn:r1150
2009-04-10 14:22:33 +00:00
Nick Mathewson
ec35eb5520
Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread.
...
svn:r1121
2009-02-12 22:19:54 +00:00
Nick Mathewson
b85b710cf5
Update copyright statements to reflect the facts that:
...
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
2009-01-27 22:34:36 +00:00
Nick Mathewson
8889a77039
Replace all use of config.h with event-config.h.
...
svn:r1064
2009-01-27 22:30:46 +00:00
Niels Provos
56ea4687a5
Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted.
...
svn:r1032
2009-01-22 02:33:38 +00:00
Nick Mathewson
a5901991c7
Use eventfd for main-thread notification where available (i.e., linux).
...
svn:r1023
2009-01-19 20:37:24 +00:00
Nick Mathewson
554e14934e
Move per-fd info from eventops into evmap. Not done for win32.c yet.
...
svn:r1008
2009-01-14 20:52:32 +00:00
Nick Mathewson
169321c9e6
Rename four internal headers to follow the -internal.h convention.
...
svn:r1000
2009-01-13 20:26:37 +00:00
Nick Mathewson
55bcd7d2f0
On win32, use a hashtable to map sockets to events rather than using an array.
...
svn:r988
2009-01-09 13:42:21 +00:00
Niels Provos
30cba6d0b3
we cannot realloc memory used by TAILQ; instead malloc each slot individually
...
svn:r977
2008-12-25 09:22:13 +00:00
Niels Provos
d776f8462b
deprecate the usage of signal_{add,del,set} and name it evsignal_{add,del,set} instead; move the old definitions to compat
...
svn:r973
2008-12-23 22:23:37 +00:00
Niels Provos
02b2b4d1be
Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal.
...
svn:r972
2008-12-23 16:37:01 +00:00
Niels Provos
f7e61870e9
support multiple events listening on the same signal; make signals regular events that go on the same event queue
...
svn:r901
2008-07-11 15:49:04 +00:00
Nick Mathewson
05965921ab
Add new functions to access backends by their features and to query the features of a backend.
...
svn:r842
2008-05-31 14:37:31 +00:00
Niels Provos
3f56e364b7
event_base_new_with_config() and related methods
...
svn:r789
2008-05-08 05:56:20 +00:00
Niels Provos
8c750eaff8
separate signal events from io events
...
svn:r760
2008-05-03 21:37:33 +00:00
Niels Provos
45e6fb0dd2
cache clock_gettime/gettimeofday values in base
...
svn:r758
2008-05-03 18:23:44 +00:00
Niels Provos
c182baca10
switch thread support so that locks get allocated as they are needed.
...
svn:r690
2008-03-10 03:17:20 +00:00
Niels Provos
558de9b377
Provide OpenSSL style support for multiple threads accessing the same event_base
...
svn:r684
2008-03-02 21:18:33 +00:00
Niels Provos
03589ccb12
rollback r594: restructuring to make event activation independent.
...
changes are going to wait for api design
svn:r612
2007-12-24 22:49:30 +00:00
Niels Provos
7aa845b73b
restructure the code to make event activation independent of regular event logic
...
svn:r594
2007-12-16 04:10:30 +00:00
Niels Provos
fbe24f43ab
remove obsoleted recalc code
...
svn:r581
2007-12-09 05:07:20 +00:00
Nick Mathewson
2823cb0579
r14944@tombo: nickm | 2007-11-25 12:12:28 -0500
...
Make kqueue pass more unit tests.
svn:r544
2007-11-25 17:15:28 +00:00
Nick Mathewson
7eb250e9c5
r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
...
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.
svn:r541
2007-11-25 17:14:19 +00:00
Niels Provos
88897852fc
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
...
svn:r539
2007-11-25 06:57:59 +00:00
Nick Mathewson
1c23e21952
r14931@tombo: nickm | 2007-11-17 17:21:09 -0500
...
Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546.
svn:r535
2007-11-17 22:21:42 +00:00
Nick Mathewson
f74e7258fd
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
...
This is one of those patches which will either make matters far
simpler after the bugs shake out, or will get reverted pretty quick
once we realize that it is a stupid idea.
We now post-process the config.h file into a new event-config.h file,
whose macros are prefixed with _EVENT_ and which is thus safe for
headers to include. Using this, we can define replacement timeval
manipulation functions in evutil.h, and use them uniformly through our
code. We can also detect which headers are needful in event.h, and
include them as required.
This is also the perfect time to remove the long-deprecated acconfig.h
file, so that autoheader no longer warns.
Should resolve the following issues:
[ 1826530 ] Header files should have access to autoconf output.
[ 1826545 ] acconfig.h is deprecated.
[ 1826564 ] On some platforms, event.h can't be included alone.
svn:r492
2007-11-07 06:01:57 +00:00
Niels Provos
30ae40cc52
switch timeouts to a min heap; from Maxim Yegorushkin
...
svn:r467
2007-11-03 18:04:53 +00:00
Niels Provos
41b7cbc381
more the signal base into the event base; this removes global state and makes signals
...
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me
svn:r351
2007-03-10 06:37:53 +00:00
Niels Provos
905ee67d00
provide maintainer mode in automake; put event_gotsig back into global
...
state; return proper error code
svn:r131
2005-02-22 15:47:53 +00:00
Niels Provos
8773c4c96c
make libevent thread-safe; first cut
...
svn:r122
2004-11-25 09:50:18 +00:00