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

Use short ptr in LockEventPtr.

This commit is contained in:
Bartosz Taudul
2019-11-02 15:40:06 +01:00
parent 181d16459c
commit c7664b0a98
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -137,7 +137,7 @@ static void UpdateLockCountSharedLockable( LockMap& lockmap, size_t pos )
else
{
const auto& tl = timeline[pos-1];
const auto tlp = (LockEventShared*)tl.ptr;
const auto tlp = (const LockEventShared*)(const LockEvent*)tl.ptr;
lockingThread = tl.lockingThread;
lockCount = tl.lockCount;
waitShared = tlp->waitShared;
@@ -151,7 +151,7 @@ static void UpdateLockCountSharedLockable( LockMap& lockmap, size_t pos )
while( pos != end )
{
auto& tl = timeline[pos];
const auto tlp = (LockEventShared*)tl.ptr;
const auto tlp = (LockEventShared*)(LockEvent*)tl.ptr;
const auto tbit = uint64_t( 1 ) << tlp->thread;
switch( (LockEvent::Type)tlp->type )
{