mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: Fix data races on the local semaphores
This commit is contained in:
committed by
Dennis Klein
parent
5d6184cd1a
commit
1c49dde668
@@ -39,7 +39,7 @@ auto Semaphore::Signal() -> void
|
||||
fCv.notify_one();
|
||||
}
|
||||
|
||||
auto Semaphore::GetCount() -> std::size_t
|
||||
auto Semaphore::GetCount() const -> std::size_t
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(fMutex);
|
||||
return fCount;
|
||||
@@ -63,7 +63,7 @@ auto SharedSemaphore::Signal() -> void
|
||||
fSemaphore->Signal();
|
||||
}
|
||||
|
||||
auto SharedSemaphore::GetCount() -> std::size_t
|
||||
auto SharedSemaphore::GetCount() const -> std::size_t
|
||||
{
|
||||
return fSemaphore->GetCount();
|
||||
}
|
||||
|
Reference in New Issue
Block a user