mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
Actually implement EpollTable::GetEpoll
This commit is contained in:
parent
ff4570f1cf
commit
aa684452eb
@ -60,8 +60,13 @@ void EpollTable::DeleteHandle(int d) {
|
|||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
Epoll* EpollTable::GetEpoll(int d) {
|
Epoll* EpollTable::GetEpoll(int epollid) {
|
||||||
UNREACHABLE();
|
std::scoped_lock lock{m_mutex};
|
||||||
|
if (epollid >= epolls.size() || epolls[epollid].Destroyed()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return &epolls[epollid];
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Libraries::Net
|
} // namespace Libraries::Net
|
||||||
|
Loading…
Reference in New Issue
Block a user