Nick Mathewson
2e36dbe1a6
Use EVUTIL_ASSERT() consistently instead of assert.
...
svn:r1464
2009-10-26 20:00:43 +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
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
Niels Provos
fa1c9a6d09
rename the backend from "event ports" to "evport" - this will allow environment based disabling to work
...
svn:r1027
2009-01-19 23:52:21 +00:00
Niels Provos
ddf3ee976d
make event ports compile again
...
svn:r1020
2009-01-19 07:00:51 +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
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
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
a2d4a06298
r15228@tombo: nickm | 2008-04-17 15:27:39 -0400
...
Use new includes in evport.c and devpoll.c. I do not have the hardware to compile these on; somebody else should test them.
svn:r720
2008-04-17 19:27:54 +00:00
Niels Provos
f38aec8bb7
devpoll and evport need reinit; tested by W.C.A. Wijngaards
...
svn:r633
2008-02-12 06:01:46 +00:00
Niels Provos
6baff52296
EAGAIN check for event ports; from Wijngaards
...
svn:r629
2008-02-06 16:14:42 +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
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
2026b21598
remove last vestiges of RBTREE
...
svn:r470
2007-11-03 23:53:49 +00:00
Niels Provos
18ac92486f
Solaris event port improvements
...
svn:r464
2007-10-27 17:50:07 +00:00
Nick Mathewson
bfd27f58da
r15086@catbus: nickm | 2007-09-15 14:42:55 -0400
...
Patch from Trond Norbye: Fix two solaris bugs.
svn:r432
2007-09-15 18:45:57 +00:00
Niels Provos
aa5c806888
make it compile on solaris; from Andrei Nigmatulin
...
svn:r366
2007-06-16 03:23:15 +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
8d94bd03eb
signal fixes from scott lamb
...
svn:r340
2007-02-28 04:29: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
49ef242f6e
add back the original sun copyright block
...
svn:r219
2006-08-09 01:04:12 +00:00
Niels Provos
00bc7e37fd
1.2-rc1; Solaris' event port support from Dave Pacheco
...
svn:r216
2006-07-15 02:55:57 +00:00