From e7e41f1e5c2860c83f952feef93a0d756fc412d5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 4 Oct 2017 15:41:23 +0200 Subject: [PATCH] Use lockable wrapper in test program. --- test/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 34bb184d..23498891 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -39,14 +39,14 @@ void ScopeCheck() } } -static std::mutex mutex; +static TracyLockable( std::mutex, mutex ); void Lock1() { for(;;) { std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) ); - std::lock_guard lock( mutex ); + std::lock_guard lock( mutex ); ZoneScoped; std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) ); } @@ -57,7 +57,7 @@ void Lock2() for(;;) { std::this_thread::sleep_for( std::chrono::milliseconds( 3 ) ); - std::unique_lock lock( mutex ); + std::unique_lock lock( mutex ); ZoneScoped; std::this_thread::sleep_for( std::chrono::milliseconds( 5 ) ); }