mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00: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::this_thread::sleep_for( std::chrono::milliseconds( 4 ) );
|
||||||
std::lock_guard<LockableBase( std::mutex )> lock( mutex );
|
std::lock_guard<LockableBase( std::mutex )> lock( mutex );
|
||||||
|
LockMark( mutex );
|
||||||
ZoneScoped;
|
ZoneScoped;
|
||||||
std::this_thread::sleep_for( std::chrono::milliseconds( 4 ) );
|
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::this_thread::sleep_for( std::chrono::milliseconds( 3 ) );
|
||||||
std::unique_lock<LockableBase( std::mutex )> lock( mutex );
|
std::unique_lock<LockableBase( std::mutex )> lock( mutex );
|
||||||
|
LockMark( mutex );
|
||||||
ZoneScoped;
|
ZoneScoped;
|
||||||
std::this_thread::sleep_for( std::chrono::milliseconds( 5 ) );
|
std::this_thread::sleep_for( std::chrono::milliseconds( 5 ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user