mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix BEV_LOCK/BEV_UNLOCK macros for EVENT__DISABLE_THREAD_SUPPORT
This commit is contained in:
parent
1915b564f3
commit
0955071470
@ -485,8 +485,8 @@ bufferevent_socket_set_conn_address_(struct bufferevent *bev, struct sockaddr *a
|
||||
#define BEV_UPCAST(b) EVUTIL_UPCAST((b), struct bufferevent_private, bev)
|
||||
|
||||
#ifdef EVENT__DISABLE_THREAD_SUPPORT
|
||||
#define BEV_LOCK(b) EVUTIL_NIL_STMT_
|
||||
#define BEV_UNLOCK(b) EVUTIL_NIL_STMT_
|
||||
#define BEV_LOCK(b) (void)(b)
|
||||
#define BEV_UNLOCK(b) (void)(b)
|
||||
#else
|
||||
/** Internal: Grab the lock (if any) on a bufferevent */
|
||||
#define BEV_LOCK(b) do { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user