60 Commits

Author SHA1 Message Date
Nick Mathewson
f4c84e8628 r15220@catbus: nickm | 2007-09-20 14:22:57 -0400
Another patch from Trond: Skip calling gettime() in timeout_process if we have no events in the timetree.


svn:r445
2007-09-20 18:27:01 +00:00
Niels Provos
10267216a6 initalize ev_res from Scott Lamb
svn:r372
2007-07-30 23:49:00 +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
4922f342fc extern "C" guard for header file.
assert activeq in event.c;

from Phil Oelson.



svn:r313
2007-01-27 04:06:52 +00:00
Niels Provos
c6e285d31a allow gotsig to terminate active event loop;
free http connection on failed incoming connections;
bugs pointed out by Dug Song.


svn:r293
2006-12-06 03:38:41 +00:00
Niels Provos
7fe5edf50c use CLOCK_REALTIME when CLOCK_MONOTONIC is not available; from Phil Oleson
svn:r290
2006-12-02 21:25:21 +00:00
Niels Provos
d698965928 fix a potential memory leak in event_once from Scott Lamb
svn:r244
2006-10-28 03:20:22 +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
Niels Provos
71108cd98b uhm - i obliterated a gettimeofday that was required for remapping the
timeouts to "real" time.  thanks to claudio for pointing that out.


svn:r211
2006-03-28 16:57:19 +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
571ac95430 use clock_gettime if available from Claudio Jeker <claudio@openbsd.org>
svn:r209
2006-03-28 04:33:41 +00:00
Niels Provos
7517ef2a81 some fixes from openbsd via brad
svn:r207
2006-03-28 04:16:14 +00:00
Niels Provos
1d308e8813 mostly whitespace fixes from OpenBSD via Brad
svn:r192
2005-12-17 20:25:22 +00:00
Niels Provos
9c9f065184 avoid double recacle when loop_once is used; from Richard Nyberg
svn:r187
2005-12-03 20:51:23 +00:00
Niels Provos
0f5b0389e5 fix memory leak; from Andrey Matveev
svn:r156
2005-04-23 15:40:14 +00:00
Niels Provos
1d0d4bc66e make gotsig volatile. from Alexander von Gernler
svn:r149
2005-04-17 06:51:10 +00:00
Niels Provos
bc2c695b76 type; set the priorities based on the correct base; reported by Vinh D. Lee
svn:r147
2005-04-10 07:18:18 +00:00
Niels Provos
1e128e2d05 fix bug that broke poll/select stuff
svn:r141
2005-04-03 07:46:27 +00:00
Niels Provos
720f7fcc0d event_base_loop and some event logging fixes.
svn:r140
2005-04-02 08:43:55 +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
99442c6f00 windows fixes from Nick Mathewson <nickm@freehaven.net>
svn:r135
2005-03-29 06:54:36 +00:00
Niels Provos
da971e5fc8 bug fix in event_once by Jody Belka <knew@pimb.org>
svn:r134
2005-03-12 02:30:32 +00:00
Niels Provos
c5e4eee03b event_get_version() and event_get_method() from
Nick Mathewson <nickm@freehaven.net>


svn:r133
2005-02-25 05:28:57 +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
bd6999b4a2 fix issue where event_del is called before event_set. bad bad thing to do.
pointed out by Mark Kidwell <MKidwell@looksmart.net>


svn:r128
2004-12-14 03:36:12 +00:00
Niels Provos
256460459e provide more base-based functions :-)
svn:r125
2004-12-01 20:04:54 +00:00
Niels Provos
8773c4c96c make libevent thread-safe; first cut
svn:r122
2004-11-25 09:50:18 +00:00
Niels Provos
fa6c304d9e support for event priorities; active events are scheduled into priority queues;
lower priorities get always processed before higher priorities


svn:r120
2004-09-19 21:08:09 +00:00
Niels Provos
06aaa92fe2 devpoll support
svn:r113
2004-07-30 04:57:21 +00:00
Niels Provos
49dbb7ea4c reformat comment
svn:r106
2004-06-11 04:39:11 +00:00
Niels Provos
025d1bc220 fix some of the windows compile issues; make buffer.c faster; support
signals via pipes.


svn:r105
2004-05-24 00:19:52 +00:00
Niels Provos
fbf01c7f04 support for low and high watermarks
svn:r101
2004-04-04 02:20:21 +00:00
Niels Provos
85fbdbb243 faster insertion of timeouts; ensure uniqueness in RB-tree compare function
svn:r97
2004-03-27 17:42:49 +00:00
Niels Provos
5908bd7213 provided buffered events
svn:r95
2004-03-23 03:43:53 +00:00
Niels Provos
cd699abf44 support event_loopexit(); idea from marius; and fix event_once()
svn:r94
2004-03-22 21:46:45 +00:00
Niels Provos
ec2c1db47e new event_once interface; start of buffering interface for buffered events
svn:r93
2004-02-22 21:17:23 +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
6809f060b2 bug fix from Pierre Phaneuf
svn:r70
2003-06-02 19:36:52 +00:00
Niels Provos
833f0c095d fix a bug where a event fires twice due to bad active list handling
svn:r68
2003-04-30 19:23:27 +00:00
Niels Provos
f9e0c44925 if a timeout on the active list is rescheduled before it can execute it
gets removed from the active list;  bug report from Jon Poland AT arbor.net


svn:r65
2003-04-10 19:14:03 +00:00
Niels Provos
04153adb66 EVENT_SHOW_METHOD environment prints which event mechanism we are using;
from Davide Libenzi <davidel@xmailserver.org>


svn:r60
2003-03-30 20:19:07 +00:00
Niels Provos
3e41f17afa support for Linux eventpoll mechanism
svn:r42
2003-03-07 23:20:36 +00:00
Niels Provos
e72dff13d9 replace references to __FUNCTION__ with __func__
svn:r40
2003-03-01 20:31:28 +00:00
Niels Provos
3c2916aa13 ifdef config.h
svn:r39
2003-03-01 19:48:05 +00:00
Niels Provos
b5b585c1f9 support disabling of event mechanisms via the environment; error out
if no event mechanism is available


svn:r38
2003-03-01 19:46:27 +00:00