port: make ep_port_ctl() thread-safe

This commit is contained in:
Bert Belder 2017-09-25 19:26:40 +02:00
parent 851a5d7346
commit a6c2c49071

View File

@ -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;
}