Update src/core/file_sys/fs.cpp
Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
parent
c6459f35a7
commit
f8cc51496d
|
@ -60,6 +60,7 @@ void HandleTable::deleteHandle(int d) {
|
|||
delete m_files.at(d - RESERVED_HANDLES);
|
||||
m_files[d - RESERVED_HANDLES] = nullptr;
|
||||
}
|
||||
|
||||
File* HandleTable::getFile(int d) {
|
||||
std::unique_lock lock{m_mutex};
|
||||
return m_files.at(d - RESERVED_HANDLES);
|
||||
|
|
Loading…
Reference in New Issue