diff options
author | Jack Lloyd <[email protected]> | 2019-01-30 10:33:15 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-01-30 10:33:15 -0500 |
commit | 8c835b3b1238083c4b4bb4a90e4d9e9b38dffb11 (patch) | |
tree | ac6fd449cd69cad4f003704735222a1750669bcf /src/lib/utils/thread_utils | |
parent | ec82eca9477360ac1179a6f7a83cc986b84dc1de (diff) |
Compile fix
Diffstat (limited to 'src/lib/utils/thread_utils')
-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) { |