diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2017-12-10 23:52:26 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2017-12-10 23:52:26 +0300 |
commit | 06fcb2444013bf05b4c6d540872a4f8ce8b5730e (patch) | |
tree | 39bb429cb66d4d97ab38e07b37efbfaa91d10650 /test | |
parent | 782231b04840303644c10621dcf469818f1a2bcb (diff) |
Use shared lockable wrappers in test.
Diffstat (limited to 'test')
-rw-r--r-- | test/test.cpp | 6 |
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 ) ); } } |