mirror of
https://github.com/decompals/wibo.git
synced 2025-10-16 07:05:11 +00:00
ProcessManager: use unique_lock when erasing
This commit is contained in:
parent
bb4bee83b7
commit
0f3b98462e
@ -189,7 +189,7 @@ void ProcessManager::checkPidfd(int pidfd) {
|
||||
|
||||
Pin<ProcessObject> po;
|
||||
{
|
||||
std::shared_lock lk(m);
|
||||
std::unique_lock lk(m);
|
||||
auto it = mReg.find(pidfd);
|
||||
if (it != mReg.end()) {
|
||||
po = std::move(it->second);
|
||||
|
Loading…
x
Reference in New Issue
Block a user