summaryrefslogtreecommitdiff
path: root/devpoll.c
Commit message (Collapse)AuthorAgeFilesLines
* more whitespace normalizationNick Mathewson2010-03-051-6/+6
|
* Update all our copyright notices to say "2010"Nick Mathewson2010-03-041-0/+1
|
* Clean up formatting: function/keyword spacing consistency.Nick Mathewson2010-02-191-3/+3
| | | | | | - Keywords always have a space before a paren. Functions never do. - No more than 3 blank lines in a row.
* Clean up formatting: use tabs, not 8-spaces, to indent.Nick Mathewson2010-02-181-5/+5
|
* Fix compilation of devpoll.c by adding missing thread includes.Dagobert Michelsen2009-12-281-0/+2
| | | | (Bug 2922156)
* Stop passing EVTHREAD_READ and EVTHREAD_WRITE to non-rw locks.Nick Mathewson2009-11-271-2/+2
| | | | | | | | | | | | | Previously, our default lock model kind of assumed that every lock was potentially a read-write lock. This was a poor choice, since read-write locks are far more expensive than regular locks, and so the lock API should only use them when we can actually take advantage of them. Neither our pthreads or win32 lock implementation provided rw locks. Now that we have a way (not currently used!) to indicate that we really want a read-write lock, we shouldn't actually say "lock this for reading" or "lock this for writing" unless we mean it.
* We do not work any more without an event-config.h; stop pretending that it ↵Nick Mathewson2009-11-061-2/+0
| | | | | | is meaningful to check for HAVE_CONFIG_H svn:r1516
* Remove compat/sys/_time.hNick Mathewson2009-11-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've gone through everything that it declared to see where it was used, and it seems that we probably don't need it anywhere. Here's what it declared, and why I think we're okay dropping it. o struct timeval {} (Used all over, and we can't really get away with declaring it ourselves; we need the same definition the system uses. If we can't find struct timeval, we're pretty much sunk.) o struct timespec {} (Used in event.c, evdns.c, kqueue.c, evport.c. Of these, kqueue.c and event.c include sys/_time.h. event.c conditions its use on _EVENT_HAVE_CLOCK_GETTIME, and kqueue() only works if timespec is defined.) o TIMEVAL_TO_TIMESPEC (Used in kqueue.c, but every place with kqueue has sys/time.h) o struct timezone {} (event2/util.h has a forward declaration; only evutil.c references it and doesn't look at its contents.) o timerclear, timerisset, timercmp, timeradd, timersub (Everything now uses the evutil_timer* variants.) o ITIMER_REAL, ITIMER_VIRTUAL, ITIMER_PROF, struct itemerval (These are only used in test/regress.c, which does not include _time.h) o CLOCK_REALTIME (Only used in evdns.c, which does not include _time.h) o TIMESPEC_TO_TIMEVAL o DST_* o timespecclear, timespecisset, timespeccmp, timespecadd, timespecsub o struct clockinfo {} o CLOCK_VIRTUAL, CLOCK_PROF o TIMER_RELTIME, TIMER_ABSTIME (unused) svn:r1494
* Use EVUTIL_ASSERT() consistently instead of assert.Nick Mathewson2009-10-261-1/+0
| | | | svn:r1464
* Add locking to event_base_loop.Nick Mathewson2009-10-211-0/+6
| | | | | | | | | | | | | | | | 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
* Update copyright statements to reflect the facts that:Nick Mathewson2009-01-271-2/+1
| | | | | | | | | 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
* Replace all use of config.h with event-config.h.Nick Mathewson2009-01-271-2/+2
| | | | svn:r1064
* Remove all trailing whitespace in all the source files.Nick Mathewson2009-01-271-5/+5
| | | | svn:r1063
* try to make devpoll work again; i dont have access to a machineNiels Provos2009-01-171-26/+14
| | | | svn:r1017
* Move per-fd info from eventops into evmap. Not done for win32.c yet.Nick Mathewson2009-01-141-4/+7
| | | | svn:r1008
* Rename four internal headers to follow the -internal.h convention.Nick Mathewson2009-01-131-3/+3
| | | | svn:r1000
* deprecate the usage of signal_{add,del,set} and name it ↵Niels Provos2008-12-231-5/+5
| | | | | | evsignal_{add,del,set} instead; move the old definitions to compat svn:r973
* Restructure the event backends so that they do not need to keep track of ↵Niels Provos2008-12-231-123/+23
| | | | | | events themselves, as a side effect multiple events can use the same fd or signal. svn:r972
* constify structs; from Andrei NigmatulinNiels Provos2008-12-131-1/+1
| | | | svn:r959
* fix off by one errors in devpoll; from Ian BellNiels Provos2008-07-251-3/+3
| | | | svn:r921
* Add new functions to access backends by their features and to query the ↵Nick Mathewson2008-05-311-1/+2
| | | | | | features of a backend. svn:r842
* simplify handling of environment variables for disabling backends;Niels Provos2008-05-291-4/+0
| | | | | | | | make event_get_supported_methods obey environment variables; this fixes make verify; problem reported by Scott Lamb. svn:r838
* r15316@tombo: nickm | 2008-04-24 20:58:36 -0400Nick Mathewson2008-04-251-16/+16
| | | | | | | Rename internal memory management functions from event_malloc() etc to mm_malloc() etc. svn:r725
* r15228@tombo: nickm | 2008-04-17 15:27:39 -0400Nick Mathewson2008-04-171-1/+2
| | | | | | | 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
* make event methods static so that they are not exported; from Andrei NigmatulinNiels Provos2008-03-291-11/+11
| | | | svn:r692
* devpoll and evport need reinit; tested by W.C.A. WijngaardsNiels Provos2008-02-121-1/+2
| | | | svn:r633
* remove obsoleted recalc codeNiels Provos2007-12-091-2/+0
| | | | svn:r581
* r14939@tombo: nickm | 2007-11-25 11:59:26 -0500Nick Mathewson2007-11-251-16/+16
| | | | | | | New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions. svn:r541
* remove last vestiges of RBTREENiels Provos2007-11-031-1/+0
| | | | svn:r470
* make clock_monotonic work; do not use default timeout;Niels Provos2007-07-301-2/+3
| | | | | | | from Scott Lamb, plus some fixes from me. svn:r371
* make it compile on solaris; from Andrei NigmatulinNiels Provos2007-06-161-0/+2
| | | | svn:r366
* more the signal base into the event base; this removes global state and ↵Niels Provos2007-03-101-10/+10
| | | | | | | | | | makes signals work better with threading; from Wouter Wijngaards small fixes for kqueue and style by me svn:r351
* rolling back r339: evconfig.h does not workNiels Provos2007-03-011-1/+1
| | | | svn:r341
* signal fixes from scott lambNiels Provos2007-02-281-11/+4
| | | | svn:r340
* make evconfig.h available as installed header file; notNiels Provos2007-02-281-1/+1
| | | | | | | really ideal but good enough for me; from Nick Mathewson svn:r339
* need to report one less file descriptor to solaris then the limit; reportedNiels Provos2006-07-151-1/+1
| | | | | | | by Dave Pacheco svn:r215
* introduce a way to free the base from Nick Mathewson <nickm@freehaven.net>Niels Provos2006-03-281-1/+21
| | | | svn:r210
* devpoll improvements from Andrew Danforth <adanforth@gmail.com>Niels Provos2005-03-291-29/+90
| | | | svn:r137
* debugging callbacks from Nick Mathewson <nickm@freehaven.net>Niels Provos2005-03-291-12/+5
| | | | svn:r136
* fixes for threaded operations from Andrew DanforthNiels Provos2005-01-031-18/+26
| | | | svn:r129
* make libevent thread-safe; first cutNiels Provos2004-11-251-7/+5
| | | | svn:r122
* when converting usec to msec round up; so that libevent does not spin untilNiels Provos2004-09-191-1/+1
| | | | | | | the time conversion has caught up; from Aaron Hopkins <aaron at die.net> svn:r121
* work around a bug in Solaris by using pwrite instead of write; reported byNiels Provos2004-08-101-2/+6
| | | | | | | michael.wookey at citrix.com.au svn:r118
* devpoll support. weehNiels Provos2004-07-301-0/+339
svn:r116