Browse Source

MT#55283 remove pointless lock

Leftover from a commit long time ago

Change-Id: I72501688c92ba37699c32f56e84be89ebc7d5f61
pull/1701/head
Richard Fuchs 2 years ago
parent
commit
3b53910fc3
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      lib/poller.c

+ 1
- 3
lib/poller.c View File

@ -279,13 +279,11 @@ int poller_poll(struct poller *p, int timeout) {
if (!p) if (!p)
return -1; return -1;
mutex_lock(&p->lock);
mutex_unlock(&p->lock);
errno = 0; errno = 0;
thread_cancel_enable(); thread_cancel_enable();
ret = epoll_wait(p->fd, evs, sizeof(evs) / sizeof(*evs), timeout); ret = epoll_wait(p->fd, evs, sizeof(evs) / sizeof(*evs), timeout);
thread_cancel_disable(); thread_cancel_disable();
mutex_lock(&p->lock); mutex_lock(&p->lock);
if (errno == EINTR) if (errno == EINTR)


Loading…
Cancel
Save