From 06fcb2444013bf05b4c6d540872a4f8ce8b5730e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Dec 2017 21:52:26 +0100 Subject: [PATCH] Use shared lockable wrappers in test. --- test/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 48114107..51ab3920 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -139,14 +139,14 @@ void DepthTest() } } -static std::shared_mutex sharedMutex; +static TracySharedLockable( std::shared_mutex, sharedMutex ); void SharedRead() { for(;;) { std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) ); - std::shared_lock lock( sharedMutex ); + std::shared_lock lock( sharedMutex ); std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) ); } } @@ -156,7 +156,7 @@ void SharedWrite() for(;;) { std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) ); - std::unique_lock lock( sharedMutex ); + std::unique_lock lock( sharedMutex ); std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) ); } }