Nick Mathewson
2e36dbe1a6
Use EVUTIL_ASSERT() consistently instead of assert.
...
svn:r1464
2009-10-26 20:00:43 +00:00
Nick Mathewson
b89b58b5f4
OSX compilation issues
...
svn:r1453
2009-10-21 06:03:00 +00:00
Nick Mathewson
6b22e74aa1
Add locking to event_base_loop.
...
This is harder than it sounds, since we need to make sure to
release the lock around the key call to the kernel (e.g.,
select, epoll_wait, kevent), AND we need to make sure that
none of the fields that are used in that call are touched by
anything that might be running concurrently in another
thread. I managed to do this pretty well for everything but
poll(). With poll, I needed to introduce a copy of the
event_set structure.
This patch also fixes a bug in win32.c where we called
realloc() instead of mm_realloc().
svn:r1450
2009-10-21 03:54:00 +00:00
Nick Mathewson
e3fd294a6d
Spelling fixes in comments and strings.
...
svn:r1445
2009-10-16 13:19:57 +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
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Nick Mathewson
2b7febc80a
Fix osx compile
...
svn:r1018
2009-01-18 01:33:18 +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
Niels Provos
b225e756ae
remove unused variable
...
svn:r974
2008-12-23 22:24:32 +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
Niels Provos
5512be0176
fix a bug where deleting signals with kqueue would delete subsequent adds
...
svn:r899
2008-07-11 15:15: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
Nick Mathewson
39400e68b6
Patch from Valery Kholodkov: support for edge-triggered events with epoll and kqueue. Changed from original patch: made test into a regression test, with explicit success/failure for edge-triggered and non-edge-triggered cases. Closes SF request 1968284.
...
svn:r840
2008-05-30 16:56:34 +00:00
Niels Provos
2deb3ce061
simplify handling of environment variables for disabling backends;
...
make event_get_supported_methods obey environment variables; this
fixes make verify; problem reported by Scott Lamb.
svn:r838
2008-05-29 01:39:43 +00:00
Nick Mathewson
49868b618a
r15316@tombo: nickm | 2008-04-24 20:58:36 -0400
...
Rename internal memory management functions from event_malloc() etc to mm_malloc() etc.
svn:r725
2008-04-25 01:18:08 +00:00
Nick Mathewson
0ac73078ed
r15193@tombo: nickm | 2008-04-16 16:00:35 -0400
...
Split event.h into several new headers in include/event2. event.h is now just a wrapper that includes all the subheaders.
svn:r711
2008-04-16 20:01:51 +00:00
Niels Provos
ca42671a14
make event methods static so that they are not exported; from Andrei Nigmatulin
...
svn:r692
2008-03-29 01:45:45 +00:00
Niels Provos
19dad16699
Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin
...
svn:r682
2008-03-02 01:46:00 +00:00
Niels Provos
2fde221759
address some compiler warnings in debug mode
...
svn:r630
2008-02-09 16:03:01 +00:00
Niels Provos
fbe24f43ab
remove obsoleted recalc code
...
svn:r581
2007-12-09 05:07:20 +00:00
Niels Provos
5f3e31596b
move EV_PERSIST handling out of the event backends
...
svn:r555
2007-11-27 01:39:10 +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
7d821580e8
Fix compile warning on osx: the udata field in struct kevent is supposed to be void*, not intptr_t.
...
svn:r387
2007-08-10 16:31:02 +00:00
Niels Provos
3ad6b47e03
make clock_monotonic work; do not use default timeout;
...
from Scott Lamb, plus some fixes from me.
svn:r371
2007-07-30 22:41:00 +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
b5d2f9a255
rolling back r339: evconfig.h does not work
...
svn:r341
2007-03-01 06:25:18 +00:00
Niels Provos
127c260bb7
make evconfig.h available as installed header file; not
...
really ideal but good enough for me; from Nick Mathewson
svn:r339
2007-02-28 04:02:29 +00:00
Niels Provos
64c76fbea4
typo in kqueue delete; from Bert JW Regeer
...
svn:r232
2006-09-03 21:12:59 +00:00
Niels Provos
2e8051f593
introduce a way to free the base from Nick Mathewson <nickm@freehaven.net>
...
svn:r210
2006-03-28 04:40:54 +00:00
Niels Provos
139e862e32
do not remove kq inkernel flag before event_del gets to it; bug reported by
...
Tassilo von Parseval; also add a test for this behavior.
svn:r190
2005-12-17 20:15:25 +00:00
Niels Provos
9938aaf511
treate EINVAL as per fd error in kqueue; use argument for debug macros in
...
poll; version 1.1a; EINVAL fix from Nick Mathewson
svn:r168
2005-06-11 21:15:22 +00:00
Niels Provos
57fafe6b5f
detect kqueue bug in Mac OS X 10.4; from Nick Mathewson
...
svn:r165
2005-05-11 03:34:42 +00:00
Niels Provos
5e2ba12a89
fixes from alexander von gernler
...
svn:r148
2005-04-14 23:28:06 +00:00
Niels Provos
d47798be5a
return error code when kqueue fails on a specific fd; from alexander von
...
gernler.
svn:r145
2005-04-07 03:35:56 +00:00
Niels Provos
fbdaf3ab62
debugging callbacks from Nick Mathewson <nickm@freehaven.net>
...
svn:r136
2005-03-29 07:03:10 +00:00
Niels Provos
3ba224dbd5
fixes for threaded operations from Andrew Danforth
...
svn:r129
2005-01-03 18:58:40 +00:00
Niels Provos
8773c4c96c
make libevent thread-safe; first cut
...
svn:r122
2004-11-25 09:50:18 +00:00
Niels Provos
d829ccea3d
fix a warning on freebsd;
...
svn:r114
2004-07-30 05:00:44 +00:00
Niels Provos
1b974101b9
fix kqueue behaviour; requires special kernel patch to make kqueue
...
semantics consistent; from marius@umich.edu
svn:r92
2003-12-20 20:05:17 +00:00
Niels Provos
e9cd9b56a3
bad realloc; found by awohl at chessclub
...
svn:r87
2003-10-11 02:54:41 +00:00
Niels Provos
c3f496c71b
minor corrections; change license to 3-clause BSD license
...
svn:r84
2003-10-04 23:27:26 +00:00
Niels Provos
e506eaf79e
constify; some windows stuff by mike davis; fix a poll bug
...
svn:r77
2003-09-25 03:26:53 +00:00
Niels Provos
6ce5b876ea
clean up from NetBSD integration
...
svn:r72
2003-06-12 23:33:19 +00:00
Niels Provos
6551780aef
bug fix from Ira Lee
...
svn:r71
2003-06-02 19:37:13 +00:00