Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential race condition on
m_direntLookup
initialization.
Reading and writing in the same time to a unique_ptr is not thread safe. So the first read in `getDirent` (not lock protected) is a potential race condition as we can also write to it (lock protected). This is sad but we have to always get a lock to get the direntLookup. Fix #945
- Loading branch information