From 745ca83de670b4b3a2700a198dcc447417fac674 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 26 Apr 2023 00:47:50 +0200 Subject: [PATCH] PreprocessLocks() doesn't use yPos. --- server/TracyTimelineItemThread.cpp | 4 ++-- server/TracyTimelineItemThread.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyTimelineItemThread.cpp b/server/TracyTimelineItemThread.cpp index 63510e15..95effca9 100644 --- a/server/TracyTimelineItemThread.cpp +++ b/server/TracyTimelineItemThread.cpp @@ -338,7 +338,7 @@ void TimelineItemThread::Preprocess( const TimelineContext& ctx, TaskDispatch& t const auto& locks = m_worker.GetLockMap(); if( !locks.empty() ) { - PreprocessLocks( ctx, locks, m_thread->id, td, visible, yPos ); + PreprocessLocks( ctx, locks, m_thread->id, td, visible ); } } } @@ -855,7 +855,7 @@ static Vector::const_iterator GetNextLockEventShared( const Vector return next; } -void TimelineItemThread::PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map& locks, uint32_t tid, TaskDispatch& td, bool visible, int yPos ) +void TimelineItemThread::PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map& locks, uint32_t tid, TaskDispatch& td, bool visible ) { const auto vStart = ctx.vStart; const auto vEnd = ctx.vEnd; diff --git a/server/TracyTimelineItemThread.hpp b/server/TracyTimelineItemThread.hpp index 813f2a21..a78080c8 100644 --- a/server/TracyTimelineItemThread.hpp +++ b/server/TracyTimelineItemThread.hpp @@ -45,7 +45,7 @@ private: void PreprocessContextSwitches( const TimelineContext& ctx, const ContextSwitch& ctxSwitch, bool visible ); void PreprocessSamples( const TimelineContext& ctx, const Vector& vec, bool visible, int yPos ); void PreprocessMessages( const TimelineContext& ctx, const Vector>& vec, uint64_t tid, bool visible, int yPos ); - void PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map& locks, uint32_t tid, TaskDispatch& td, bool visible, int yPos ); + void PreprocessLocks( const TimelineContext& ctx, const unordered_flat_map& locks, uint32_t tid, TaskDispatch& td, bool visible ); const ThreadData* m_thread; bool m_ghost;