1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Change LockState to bitmask.

This commit is contained in:
Bartosz Taudul
2023-04-15 14:13:14 +02:00
parent f7a8998663
commit e68214a88a
2 changed files with 38 additions and 75 deletions
+9 -6
View File
@@ -72,18 +72,21 @@ struct CpuCtxDraw
enum class LockState : uint8_t
struct LockState
{
Nothing,
HasLock, // green
HasBlockingLock, // yellow
WaitLock // red
enum Type : uint8_t
{
Nothing = 1 << 0,
HasLock = 1 << 1, // green
HasBlockingLock = 1 << 2, // yellow
WaitLock = 1 << 3 // red
};
};
struct LockDrawItem
{
Int48 t1;
LockState state;
LockState::Type state;
uint32_t condensed;
short_ptr<LockEventPtr> ptr, next;
};