evmap.c


Log

Author Commit Date CI Message
Nick Mathewson f3dee9e8 2009-10-16T13:20:09 Correct the signatures for the evmap_io_* functions to use evutil_socket_t. svn:r1446
Nick Mathewson ba8a1771 2009-10-02T03:03:58 Do not notify the main thread more than needed. Basically, we suppress the notification when an event is added or deleted and: - The event has no fd, or there is no change in whether we are reading/writing on the event's fd. - The event has no timeout, or adding the event did not make the earliest timeout become earlier. This should be a big efficiency win in applications with multiple threads and lots of timeouts. svn:r1439
Nick Mathewson c2ead9f1 2009-09-11T21:02:19 Treat events with fd == -1 as addable. This turns out to simplify a fair bit of logic, including the bufferevent code, and should fix bug 2850656. svn:r1431
Nick Mathewson 5b5b880b 2009-07-28T19:41:39 Various MSVC cleanups from Brodie Thiesfield. svn:r1385
Nick Mathewson 64a37e61 2009-04-17T06:56:36 Fix evmap indentation to be less stupid. svn:r1185
Nick Mathewson b85b710c 2009-01-27T22:34:36 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
Nick Mathewson 8889a770 2009-01-27T22:30:46 Replace all use of config.h with event-config.h. svn:r1064
Niels Provos 0e779906 2009-01-26T06:13:24 fix memleak in evmap_signal_clear; from Alexander Drozdov svn:r1049
Nick Mathewson 554e1493 2009-01-14T20:52:32 Move per-fd info from eventops into evmap. Not done for win32.c yet. svn:r1008
Nick Mathewson ad7f1b4a 2009-01-14T18:45:42 The element size for our linear evmaps is a pointer, not the whole struct. svn:r1006
Nick Mathewson 6bb2f842 2009-01-14T18:38:03 Add initializer functions for evmap types. svn:r1005
Nick Mathewson 9935d5b0 2009-01-13T21:39:32 Fix win32 compilation. Surprisingly, unit tests pass too. svn:r1002
Nick Mathewson 169321c9 2009-01-13T20:26:37 Rename four internal headers to follow the -internal.h convention. svn:r1000
Nick Mathewson 91e3ead8 2009-01-10T14:37:45 Improve the hashsocket function. svn:r989
Nick Mathewson 55bcd7d2 2009-01-09T13:42:21 On win32, use a hashtable to map sockets to events rather than using an array. svn:r988
Nick Mathewson 8f5777e6 2009-01-09T05:01:48 Document internal evmap functions, add a couple of asserts, and fix up some things that did not need to be void* any more svn:r987
Niels Provos 172b6575 2009-01-02T18:18:30 malloc fd only if it is needed. svn:r982
Niels Provos 30cba6d0 2008-12-25T09:22:13 we cannot realloc memory used by TAILQ; instead malloc each slot individually svn:r977
Niels Provos b55ca7de 2008-12-23T22:31:27 reduce void *age a little bit svn:r975
Niels Provos 02b2b4d1 2008-12-23T16:37:01 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