2025-08-26 00:55:10 +08:00
|
|
|
#include <common/TracyMutex.hpp>
|
|
|
|
#include <mutex>
|
2025-08-25 15:24:22 +08:00
|
|
|
#include <tracy/Tracy.hpp>
|
|
|
|
void Test()
|
|
|
|
{
|
2025-08-26 00:55:10 +08:00
|
|
|
TracyLockable(std::mutex, lock);
|
|
|
|
std::lock_guard<LockableBase(std::mutex)> _(lock);
|
|
|
|
|
2025-08-25 15:24:22 +08:00
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
ZoneScoped;
|
|
|
|
while (true)
|
|
|
|
{
|
|
|
|
Test();
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|