From 31f27d46495d867e529dbadb3898ee65f4ccaac4 Mon Sep 17 00:00:00 2001 From: wqking Date: Tue, 19 Sep 2023 08:11:03 +0800 Subject: [PATCH] Fixed mutex type in utility function in ScopedRemover --- include/eventpp/utilities/scopedremover.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/eventpp/utilities/scopedremover.h b/include/eventpp/utilities/scopedremover.h index 2fe5cb9..322aed7 100644 --- a/include/eventpp/utilities/scopedremover.h +++ b/include/eventpp/utilities/scopedremover.h @@ -23,14 +23,14 @@ namespace eventpp { namespace internal_ { -template -bool removeHandleFromScopedRemoverItemList(std::vector & itemList, Handle & handle, std::mutex & mutex) +template +bool removeHandleFromScopedRemoverItemList(std::vector & itemList, Handle & handle, Mutex & mutex) { if(! handle) { return false; } auto handlePointer = handle.lock(); - std::unique_lock lock(mutex); + std::unique_lock lock(mutex); auto it = std::find_if(itemList.begin(), itemList.end(), [&handlePointer](Item & item) { return item.handle && item.handle.lock() == handlePointer; });