Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 0cb70e33 | 2011-10-26 10:17:21 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 3c824bd3 | 2011-10-24 13:18:09 | Update copyright dates to 2011. | ||
| 78fb99ce | 2011-07-04 12:22:54 | Merge remote-tracking branch 'origin/patches-2.0' | ||
| 9f560bfa | 2011-05-25 19:50:56 | Use "_WIN32", not WIN32: it's standard and we don't need to fake it This patch was automatically generated with perl. Based on a patch by Peter Rosin. | ||
| b683cae3 | 2011-04-22 12:01:25 | Avoid race-condition when initializing global locks Previously, we did stuff like if (!lock) EVTHREAD_ALLOC_LOCK(lock,0); for the evsig base global lock, the arc4random lock, and the debug_map lock. But that's potentially racy! Instead, we move the responisiblity for global lock initialization to the functions where we set up the lock callbacks. (Rationale: We already require that you set up the locking callbacks before you create any event_base, and that you do so exatly once.) | ||
| 0915ca0a | 2011-01-02 08:43:45 | Include evconfig-private.h in internal files for great good. | ||
| fbe64f21 | 2010-12-02 10:26:12 | Use relative includes instead of system includes consistently. | ||
| e7dc501e | 2010-09-08 14:40:51 | Implement EVBASE_NEED_NOTIFY on win32 | ||
| 9580e282 | 2010-09-08 14:00:45 | Merge branch 'th_notify_fd_reinit' | ||
| c7a06bfa | 2010-09-08 13:02:58 | Avoid needlessly calling evthread_notify_base() when the loop is not running Also make sure that we always hold the base lock when calling evthread_notify_base. | ||
| 5de2bcb7 | 2010-09-01 16:03:39 | On windows, make lock/thread function tables static This requires us to have a separate implementation of the lock macros that indirects to a set of functions. Fortunately, this isn't too hard to do. This may be a fix for bug 3042969, where our openssl dll and our libevent dll each got their own version of the thread stuff. | ||
| d4977b52 | 2010-08-17 13:15:34 | Add a condition variable backend, with implementations for pthreads and win32 The interface from the user's POV is similar to the locking implementation: either provide a structure full of function pointers, or just call evthread_use_*_threads() and everything will be okay. The internal interface is meant to vaguely resemble pthread_cond_*, which Windows people will better recognize as *ConditionVariable*. | ||
| ec347b92 | 2010-07-07 16:45:03 | Move event-config.h to include/event2 This change means that all required include files are in event2, and all files not in event2/* are optional. | ||
| 218a3c37 | 2010-05-13 11:24:07 | Do not check that event_base is set in EVBASE_ACQUIRE_LOCK In every place that we call EVBASE_ACQUIRE_LOCK, the base is either set, or must be set, so the test is redundant. | ||
| 17efc1cd | 2010-03-04 01:25:51 | Update all our copyright notices to say "2010" | ||
| e5bbd40a | 2010-02-18 17:41:15 | Clean up formatting: use tabs, not 8-spaces, to indent. | ||
| 97a8c790 | 2010-01-22 00:34:21 | Fix compilation of rate-limit code when threading support is disabled | ||
| 689fc091 | 2009-11-28 11:31:39 | New EVTHREAD_TRY_LOCK function to try to grab a lock. | ||
| 0cd3bb9f | 2009-11-27 17:22:19 | Improved optional lock debugging. There were a couple of places in the code where we manually kept lock counts to make sure we never accessed resources without holding a lock, and that we never released a lock we didn't have. The lock-debugging code already puts counts on _every_ lock when lock debugging is enabled, so there is no need to keep these counts around otherwise. This patch rewrites the ASSERT_FOO_LOCKED macros to all use a common EVLOCK_ASSERT_LOCKED(). We also teach the lock debugging code to keep track of who exactly holds each lock, so that EVLOCK_ASSERT_LOCKED() means "locked by this thread." | ||
| 76cd2b70 | 2009-11-27 16:44:47 | Stop passing EVTHREAD_READ and EVTHREAD_WRITE to non-rw locks. 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. | ||
| 347952ff | 2009-11-27 15:20:43 | Revise the locking API: deprecate the old locking callbacks and add trylock. Previously, there was no good way to request different kinds of lock (say, read/write vs writeonly or recursive vs nonrecursive), or for a lock function to signal failure (which would be important for a trylock mode). This patch revises the lock API to be a bit more useful. The older lock calls are still supported for now. We also add a debugging mode to catch common errors in using the locking APIs. | ||
| e3fd294a | 2009-10-16 13:19:57 | Spelling fixes in comments and strings. svn:r1445 | ||
| eda27f95 | 2009-04-19 20:54:12 | Update copyright notices, add some missing license statements svn:r1208 | ||
| 838d0a81 | 2009-04-17 06:55:08 | Document many internal functions and pieces of code. svn:r1181 | ||
| 28255a26 | 2009-04-05 04:26:46 | Finally, get unit tests to pass with threading turned off again. svn:r1137 | ||
| 661b5eea | 2009-04-05 04:10:05 | Actually, move EVUTIL_NIL_STMT to util-internal.h svn:r1135 | ||
| d13b59ce | 2009-04-05 02:44:04 | Fix build with thread support disabled, and make no-op macros a little more no-oppy. svn:r1133 | ||
| 70ee390f | 2009-04-05 02:43:55 | Add some more utility macros to evthread-internal.h svn:r1132 | ||
| ec35eb55 | 2009-02-12 22:19:54 | Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread. svn:r1121 | ||
| b85b710c | 2009-01-27 22: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 | ||
| 8889a770 | 2009-01-27 22:30:46 | Replace all use of config.h with event-config.h. svn:r1064 | ||
| 502929cd | 2008-03-31 00:31:53 | add a check that base != NULL for threading; might want to drop this later svn:r696 | ||
| c182baca | 2008-03-10 03:17:20 | switch thread support so that locks get allocated as they are needed. svn:r690 | ||
| 558de9b3 | 2008-03-02 21:18:33 | Provide OpenSSL style support for multiple threads accessing the same event_base svn:r684 |