mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Rename IsThreadStringRetrieved -> IsFailureThreadStringRetrieved.
IsThreadStringRetrieved() interface suggested that it can be used for checking any thread state, as it had an uint64_t id parameter. The implementation ignored this parameter and checked the status of failure thread only. This was never an issue because the code using this function was only checking for the failure thread state. Fixed by renaming the function to explicitly state what it does and removing the thread id parameter.
This commit is contained in:
parent
b64bab197a
commit
3b00e55235
@ -2926,7 +2926,7 @@ void Worker::UpdateMbps( int64_t td )
|
||||
m_mbpsData.transferred += bytes;
|
||||
}
|
||||
|
||||
bool Worker::IsThreadStringRetrieved( uint64_t id )
|
||||
bool Worker::IsFailureThreadStringRetrieved()
|
||||
{
|
||||
const auto name = GetThreadName( m_failureData.thread );
|
||||
return strcmp( name, "???" ) != 0;
|
||||
@ -2953,7 +2953,7 @@ bool Worker::IsSourceLocationRetrieved( int16_t srcloc )
|
||||
|
||||
bool Worker::HasAllFailureData()
|
||||
{
|
||||
if( m_failureData.thread != 0 && !IsThreadStringRetrieved( m_failureData.thread ) ) return false;
|
||||
if( m_failureData.thread != 0 && !IsFailureThreadStringRetrieved() ) return false;
|
||||
if( m_failureData.srcloc != 0 && !IsSourceLocationRetrieved( m_failureData.srcloc ) ) return false;
|
||||
if( m_failureData.callstack != 0 && !IsCallstackRetrieved( m_failureData.callstack ) ) return false;
|
||||
return true;
|
||||
|
@ -882,7 +882,7 @@ private:
|
||||
void HandlePostponedSamples();
|
||||
void HandlePostponedGhostZones();
|
||||
|
||||
bool IsThreadStringRetrieved( uint64_t id );
|
||||
bool IsFailureThreadStringRetrieved();
|
||||
bool IsSourceLocationRetrieved( int16_t srcloc );
|
||||
bool IsCallstackRetrieved( uint32_t callstack );
|
||||
bool HasAllFailureData();
|
||||
|
Loading…
Reference in New Issue
Block a user