aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/barrier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/barrier.cpp')
-rw-r--r--src/lib/utils/barrier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/barrier.cpp b/src/lib/utils/barrier.cpp
index 81c578b72..3c721d905 100644
--- a/src/lib/utils/barrier.cpp
+++ b/src/lib/utils/barrier.cpp
@@ -11,7 +11,7 @@
namespace Botan {
-void Barrier::wait(unsigned delta)
+void Barrier::wait(size_t delta)
{
lock_guard_type<mutex_type> lock(m_mutex);
m_value += delta;
@@ -23,7 +23,7 @@ void Barrier::sync()
--m_value;
if(m_value > 0)
{
- unsigned current_syncs = m_syncs;
+ const size_t current_syncs = m_syncs;
m_cond.wait(lock, [this, &current_syncs] { return m_syncs != current_syncs; });
}
else