mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Merge remote branch 'github/win_notify'
This commit is contained in:
commit
6f82171013
@ -189,6 +189,10 @@ int _evthreadimpl_cond_wait(void *cond, void *lock, const struct timeval *tv);
|
|||||||
#define EVTHREAD_GET_ID() _evthreadimpl_get_id()
|
#define EVTHREAD_GET_ID() _evthreadimpl_get_id()
|
||||||
#define EVBASE_IN_THREAD(base) \
|
#define EVBASE_IN_THREAD(base) \
|
||||||
((base)->th_owner_id == _evthreadimpl_get_id())
|
((base)->th_owner_id == _evthreadimpl_get_id())
|
||||||
|
#define EVBASE_NEED_NOTIFY(base) \
|
||||||
|
((base)->running_loop && \
|
||||||
|
((base)->th_owner_id != _evthreadimpl_get_id()))
|
||||||
|
|
||||||
#define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \
|
#define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \
|
||||||
((lockvar) = _evthreadimpl_lock_alloc(locktype))
|
((lockvar) = _evthreadimpl_lock_alloc(locktype))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user