Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp6
1 files 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<std::shared_mutex> lock( sharedMutex );
+ std::shared_lock<SharedLockableBase( std::shared_mutex )> 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<std::shared_mutex> lock( sharedMutex );
+ std::unique_lock<SharedLockableBase( std::shared_mutex )> lock( sharedMutex );
std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) );
}
}