event.c


Log

Author Commit Date CI Message
Nick Mathewson 1120f04f 2007-11-25T21:53:06 r16731@catbus: nickm | 2007-11-25 16:52:53 -0500 Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32. svn:r552
Nick Mathewson 7eb250e9 2007-11-25T17:14:19 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
Niels Provos 98b5453e 2007-11-25T07:11:59 forgot to dealloc previous base svn:r540
Niels Provos 88897852 2007-11-25T06:57:59 provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue svn:r539
Nick Mathewson 1c23e219 2007-11-17T22:21:42 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
Niels Provos f586f428 2007-11-14T17:52:21 provide event_base_new() as a mechanism for not setting the current_global svn:r529
Niels Provos d50afbb3 2007-11-13T03:32:10 free minheap; from Christopher Layne svn:r525
Niels Provos 3742868a 2007-11-12T06:54:35 We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne. svn:r519
Niels Provos 4a1a2e0d 2007-11-12T02:31:07 Make the logic for active events work better with internal events; patch from Christopher Layne svn:r509
Nick Mathewson 45c7ab25 2007-11-07T07:33:36 r16510@catbus: nickm | 2007-11-07 02:29:42 -0500 Try not to shadow local variables or function arguments. svn:r498
Nick Mathewson f74e7258 2007-11-07T06:01:57 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
Nick Mathewson 206d4336 2007-11-07T05:02:21 r16497@catbus: nickm | 2007-11-07 00:01:02 -0500 Resolve issue 1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base. This can leak memory and fds if used injudiciously, but at least it no longer crashes. svn:r490
Nick Mathewson e9564ece 2007-11-07T03:40:26 r16487@catbus: nickm | 2007-11-06 22:38:44 -0500 Remove rtsig method, as discussed in July. It hasn't compiled for quite a while, and nobody has seemed to miss it much. Please let us know if this was a bad call. [Tracker issue 1826539]. svn:r485
Niels Provos a5271518 2007-11-07T01:48:44 make event_init should return struct event_base * svn:r481
Niels Provos 2026b215 2007-11-03T23:53:49 remove last vestiges of RBTREE svn:r470
Niels Provos 30ae40cc 2007-11-03T18:04:53 switch timeouts to a min heap; from Maxim Yegorushkin svn:r467
Nick Mathewson f4c84e86 2007-09-20T18:27:01 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
Niels Provos 10267216 2007-07-30T23:49:00 initalize ev_res from Scott Lamb svn:r372
Niels Provos 3ad6b47e 2007-07-30T22:41:00 make clock_monotonic work; do not use default timeout; from Scott Lamb, plus some fixes from me. svn:r371
Niels Provos 41b7cbc3 2007-03-10T06:37:53 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
Niels Provos b5d2f9a2 2007-03-01T06:25:18 rolling back r339: evconfig.h does not work svn:r341
Niels Provos 127c260b 2007-02-28T04:02:29 make evconfig.h available as installed header file; not really ideal but good enough for me; from Nick Mathewson svn:r339
Niels Provos 4922f342 2007-01-27T04:06:52 extern "C" guard for header file. assert activeq in event.c; from Phil Oelson. svn:r313
Niels Provos c6e285d3 2006-12-06T03:38:41 allow gotsig to terminate active event loop; free http connection on failed incoming connections; bugs pointed out by Dug Song. svn:r293
Niels Provos 7fe5edf5 2006-12-02T21:25:21 use CLOCK_REALTIME when CLOCK_MONOTONIC is not available; from Phil Oleson svn:r290
Niels Provos d6989659 2006-10-28T03:20:22 fix a potential memory leak in event_once from Scott Lamb svn:r244
Niels Provos 00bc7e37 2006-07-15T02:55:57 1.2-rc1; Solaris' event port support from Dave Pacheco svn:r216
Niels Provos 71108cd9 2006-03-28T16:57:19 uhm - i obliterated a gettimeofday that was required for remapping the timeouts to "real" time. thanks to claudio for pointing that out. svn:r211
Niels Provos 2e8051f5 2006-03-28T04:40:54 introduce a way to free the base from Nick Mathewson <nickm@freehaven.net> svn:r210
Niels Provos 571ac954 2006-03-28T04:33:41 use clock_gettime if available from Claudio Jeker <claudio@openbsd.org> svn:r209
Niels Provos 7517ef2a 2006-03-28T04:16:14 some fixes from openbsd via brad svn:r207
Niels Provos 1d308e88 2005-12-17T20:25:22 mostly whitespace fixes from OpenBSD via Brad svn:r192
Niels Provos 9c9f0651 2005-12-03T20:51:23 avoid double recacle when loop_once is used; from Richard Nyberg svn:r187
Niels Provos 0f5b0389 2005-04-23T15:40:14 fix memory leak; from Andrey Matveev svn:r156
Niels Provos 1d0d4bc6 2005-04-17T06:51:10 make gotsig volatile. from Alexander von Gernler svn:r149
Niels Provos bc2c695b 2005-04-10T07:18:18 type; set the priorities based on the correct base; reported by Vinh D. Lee svn:r147
Niels Provos 1e128e2d 2005-04-03T07:46:27 fix bug that broke poll/select stuff svn:r141
Niels Provos 720f7fcc 2005-04-02T08:43:55 event_base_loop and some event logging fixes. svn:r140
Niels Provos fbdaf3ab 2005-03-29T07:03:10 debugging callbacks from Nick Mathewson <nickm@freehaven.net> svn:r136
Niels Provos 99442c6f 2005-03-29T06:54:36 windows fixes from Nick Mathewson <nickm@freehaven.net> svn:r135
Niels Provos da971e5f 2005-03-12T02:30:32 bug fix in event_once by Jody Belka <knew@pimb.org> svn:r134
Niels Provos c5e4eee0 2005-02-25T05:28:57 event_get_version() and event_get_method() from Nick Mathewson <nickm@freehaven.net> svn:r133
Niels Provos 905ee67d 2005-02-22T15:47:53 provide maintainer mode in automake; put event_gotsig back into global state; return proper error code svn:r131
Niels Provos bd6999b4 2004-12-14T03:36:12 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
Niels Provos 25646045 2004-12-01T20:04:54 provide more base-based functions :-) svn:r125
Niels Provos 8773c4c9 2004-11-25T09:50:18 make libevent thread-safe; first cut svn:r122
Niels Provos fa6c304d 2004-09-19T21:08:09 support for event priorities; active events are scheduled into priority queues; lower priorities get always processed before higher priorities svn:r120
Niels Provos 06aaa92f 2004-07-30T04:57:21 devpoll support svn:r113
Niels Provos 49dbb7ea 2004-06-11T04:39:11 reformat comment svn:r106
Niels Provos 025d1bc2 2004-05-24T00:19:52 fix some of the windows compile issues; make buffer.c faster; support signals via pipes. svn:r105
Niels Provos fbf01c7f 2004-04-04T02:20:21 support for low and high watermarks svn:r101
Niels Provos 85fbdbb2 2004-03-27T17:42:49 faster insertion of timeouts; ensure uniqueness in RB-tree compare function svn:r97
Niels Provos 5908bd72 2004-03-23T03:43:53 provided buffered events svn:r95
Niels Provos cd699abf 2004-03-22T21:46:45 support event_loopexit(); idea from marius; and fix event_once() svn:r94
Niels Provos ec2c1db4 2004-02-22T21:17:23 new event_once interface; start of buffering interface for buffered events svn:r93
Niels Provos c3f496c7 2003-10-04T23:27:26 minor corrections; change license to 3-clause BSD license svn:r84
Niels Provos e506eaf7 2003-09-25T03:26:53 constify; some windows stuff by mike davis; fix a poll bug svn:r77
Niels Provos 6ce5b876 2003-06-12T23:33:19 clean up from NetBSD integration svn:r72
Niels Provos 6809f060 2003-06-02T19:36:52 bug fix from Pierre Phaneuf svn:r70
Niels Provos 833f0c09 2003-04-30T19:23:27 fix a bug where a event fires twice due to bad active list handling svn:r68
Niels Provos f9e0c449 2003-04-10T19:14:03 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
Niels Provos 04153adb 2003-03-30T20:19:07 EVENT_SHOW_METHOD environment prints which event mechanism we are using; from Davide Libenzi <davidel@xmailserver.org> svn:r60
Niels Provos 3e41f17a 2003-03-07T23:20:36 support for Linux eventpoll mechanism svn:r42
Niels Provos e72dff13 2003-03-01T20:31:28 replace references to __FUNCTION__ with __func__ svn:r40
Niels Provos 3c2916aa 2003-03-01T19:48:05 ifdef config.h svn:r39
Niels Provos b5b585c1 2003-03-01T19:46:27 support disabling of event mechanisms via the environment; error out if no event mechanism is available svn:r38
Niels Provos b3d1c6a8 2003-02-28T22:38:30 support poll(2) and split out the signal handling svn:r37
Niels Provos 9d2401ff 2002-10-07T00:47:34 portability fixes from marius@umich.edu. svn:r35
Niels Provos 5f865858 2002-07-26T14:45:50 sync with openbsd; API change: timeout_ is now evtimer_ svn:r29
Niels Provos 484e594e 2002-06-11T18:38:37 make kqueue work for callbacks that use both read and write events simultaneously svn:r26
Niels Provos cc32570a 2002-05-20T21:47:04 updating a timeout might corrupt RB tree. Remove before changing time. svn:r24
Niels Provos 4ec4cdde 2002-04-17T02:07:31 forgot to initialize elements svn:r23
Niels Provos 59137c11 2002-04-10T03:15:19 deal correctly with deleting an event, now that we allow multiple callbacks for signal delivery. svn:r20
Niels Provos d10f85db 2002-04-10T02:10:47 signal support for kqueue; support of EV_PERSIST flag to event_set svn:r18
Niels Provos b855bc55 2002-04-10T00:31:31 initial support for signals (only for select now) based on code from Dug Song <dugsong@monkey.org> svn:r17
Niels Provos aa6567fe 2002-04-09T15:14:06 Initial revision svn:r2