port: make ep_port_ctl() thread-safe
This commit is contained in:
parent
851a5d7346
commit
a6c2c49071
@ -285,7 +285,9 @@ int ep_port_ctl(ep_port_t* port_info,
|
||||
struct epoll_event* ev) {
|
||||
int result;
|
||||
|
||||
EnterCriticalSection(&port_info->lock);
|
||||
result = _ep_port_ctl_op(port_info, op, sock, ev);
|
||||
LeaveCriticalSection(&port_info->lock);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user