1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-25 23:30:49 +08:00

ScopedRemover: fix lock custom mutex

This commit is contained in:
SR_team 2023-09-18 22:06:26 +03:00
parent 3566fa6ab4
commit 06a2381785
No known key found for this signature in database
GPG Key ID: EDAFEEC8A693407D

View File

@ -104,7 +104,7 @@ public:
}
}
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename DispatcherType::Mutex> lock(itemListMutex);
itemList.clear();
}
@ -128,7 +128,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename DispatcherType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}
@ -147,7 +147,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename DispatcherType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}
@ -167,7 +167,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename DispatcherType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}
@ -245,7 +245,7 @@ public:
}
}
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename CallbackListType::Mutex> lock(itemListMutex);
itemList.clear();
}
@ -267,7 +267,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename CallbackListType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}
@ -284,7 +284,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename CallbackListType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}
@ -302,7 +302,7 @@ public:
};
{
std::unique_lock<std::mutex> lock(itemListMutex);
std::unique_lock<typename CallbackListType::Mutex> lock(itemListMutex);
itemList.push_back(item);
}