diff options
-rw-r--r-- | src/lib/utils/thread_utils/barrier.cpp | 2 | ||||
-rw-r--r-- | src/lib/utils/thread_utils/semaphore.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/thread_utils/barrier.cpp b/src/lib/utils/thread_utils/barrier.cpp index fae0b46dd..c05c22121 100644 --- a/src/lib/utils/thread_utils/barrier.cpp +++ b/src/lib/utils/thread_utils/barrier.cpp @@ -11,7 +11,7 @@ namespace Botan { void Barrier::wait(size_t delta) { - lock_guard_type<std::mutex> lock(m_mutex); + std::lock_guard<std::mutex> lock(m_mutex); m_value += delta; } diff --git a/src/lib/utils/thread_utils/semaphore.cpp b/src/lib/utils/thread_utils/semaphore.cpp index 2667d4e0c..0858a013f 100644 --- a/src/lib/utils/thread_utils/semaphore.cpp +++ b/src/lib/utils/thread_utils/semaphore.cpp @@ -15,7 +15,7 @@ void Semaphore::release(size_t n) { for(size_t i = 0; i != n; ++i) { - lock_guard_type<std::mutex> lock(m_mutex); + std::lock_guard<std::mutex> lock(m_mutex); if(m_value++ < 0) { |