mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +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();
|
||||
}
|
||||
|
||||
Epoll* EpollTable::GetEpoll(int d) {
|
||||
UNREACHABLE();
|
||||
Epoll* EpollTable::GetEpoll(int epollid) {
|
||||
std::scoped_lock lock{m_mutex};
|
||||
if (epollid >= epolls.size() || epolls[epollid].Destroyed()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &epolls[epollid];
|
||||
}
|
||||
|
||||
} // namespace Libraries::Net
|
||||
|
Loading…
Reference in New Issue
Block a user