mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Mark locks in test application.
This commit is contained in:
parent
6488ba6e0f
commit
ad28bdf85d
@ -47,6 +47,7 @@ void Lock1()
|
||||
{
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) );
|
||||
std::lock_guard<LockableBase( std::mutex )> lock( mutex );
|
||||
LockMark( mutex );
|
||||
ZoneScoped;
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) );
|
||||
}
|
||||
@ -58,6 +59,7 @@ void Lock2()
|
||||
{
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 3 ) );
|
||||
std::unique_lock<LockableBase( std::mutex )> lock( mutex );
|
||||
LockMark( mutex );
|
||||
ZoneScoped;
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 5 ) );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user