mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/vfs-select-lock-latency-4.4' into 'release/v4.4'
vfs: reduce lock in vfs_select (v4.4) See merge request espressif/esp-idf!16172
This commit is contained in:
commit
51e295b5c2
@ -1045,13 +1045,13 @@ int esp_vfs_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds
|
||||
vSemaphoreDelete(sel_sem.sem);
|
||||
sel_sem.sem = NULL;
|
||||
}
|
||||
_lock_acquire(&s_fd_table_lock);
|
||||
for (int fd = 0; fd < nfds; ++fd) {
|
||||
_lock_acquire(&s_fd_table_lock);
|
||||
if (s_fd_table[fd].has_pending_close) {
|
||||
s_fd_table[fd] = FD_TABLE_ENTRY_UNUSED;
|
||||
}
|
||||
_lock_release(&s_fd_table_lock);
|
||||
}
|
||||
_lock_release(&s_fd_table_lock);
|
||||
free(vfs_fds_triple);
|
||||
free(driver_args);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user