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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user