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

Merge pull request #63 from sr-tream/master

ScopedRemover: fix lock custom mutex
This commit is contained in:
Wang Qi 2023-09-19 08:08:38 +08:00 committed by GitHub
commit db340210ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}