kc3-lang/libevent/evthread-internal.h

Branch :


Log

Author Commit Date CI Message
3c824bd3 2011-10-24 13:18:09 Update copyright dates to 2011.
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.)
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.