diff options
Diffstat (limited to 'server/TracyEvent.hpp')
-rw-r--r-- | server/TracyEvent.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 9dafde0e..ac2c0f03 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -234,6 +234,8 @@ enum { CrashEventSize = sizeof( CrashEvent ) }; struct ContextSwitchData { + enum : int8_t { NoState = 100 }; + int64_t Start() const { return int64_t( _start_cpu ) >> 8; } void SetStart( int64_t start ) { assert( start < ( 1ll << 47 ) ); _start_cpu = ( _start_cpu & 0xFF ) | uint64_t( start << 8 ); } int64_t End() const { return int64_t( _end_reason_state ) >> 16; } |