@@ -169,7 +169,7 @@ namespace
169
169
REQUIRE (current_value->x == expected_result);
170
170
}
171
171
172
- template <typename MutexType>
172
+ template <mamba::util::Mutex MutexType>
173
173
void test_synchronized_value_basics ()
174
174
{
175
175
using synchronized_value = mamba::util::synchronized_value<ValueType, MutexType>;
@@ -297,15 +297,15 @@ namespace
297
297
}
298
298
299
299
// Factorized initializer-list test
300
- template <typename MutexType>
300
+ template <mamba::util::Mutex MutexType>
301
301
void test_synchronized_value_initializer_list ()
302
302
{
303
303
using synchronized_value = mamba::util::synchronized_value<std::vector<int >, MutexType>;
304
304
synchronized_value values{ 1 , 2 , 3 , 4 };
305
305
}
306
306
307
307
// Factorized apply example test
308
- template <typename MutexType>
308
+ template <mamba::util::Mutex MutexType>
309
309
void test_synchronized_value_apply_example ()
310
310
{
311
311
using synchronized_value = mamba::util::synchronized_value<std::vector<int >, MutexType>;
@@ -319,15 +319,15 @@ namespace
319
319
}
320
320
321
321
// Factorized thread-safe direct_access test
322
- template <typename MutexType>
322
+ template <mamba::util::Mutex MutexType>
323
323
void test_synchronized_value_threadsafe_direct_access ()
324
324
{
325
325
using synchronized_value = mamba::util::synchronized_value<ValueType, MutexType>;
326
326
test_concurrent_increment<MutexType>([](synchronized_value& sv) { sv->x += 1 ; });
327
327
}
328
328
329
329
// Factorized thread-safe synchronize test
330
- template <typename MutexType>
330
+ template <mamba::util::Mutex MutexType>
331
331
void test_synchronized_value_threadsafe_synchronize ()
332
332
{
333
333
using synchronized_value = mamba::util::synchronized_value<ValueType, MutexType>;
@@ -341,7 +341,7 @@ namespace
341
341
}
342
342
343
343
// Factorized thread-safe apply test
344
- template <typename MutexType>
344
+ template <mamba::util::Mutex MutexType>
345
345
void test_synchronized_value_threadsafe_apply ()
346
346
{
347
347
using synchronized_value = mamba::util::synchronized_value<ValueType, MutexType>;
@@ -350,7 +350,7 @@ namespace
350
350
}
351
351
352
352
// Factorized thread-safe multiple synchronize test
353
- template <typename MutexType>
353
+ template <mamba::util::Mutex MutexType>
354
354
void test_synchronized_value_threadsafe_multiple_synchronize ()
355
355
{
356
356
using synchronized_value = mamba::util::synchronized_value<ValueType, MutexType>;
0 commit comments