Dump cycle time for all type instead of just PROCESS_TYPE_AMF_CHILD. (#1638)

This commit is contained in:
Hong Chen 2024-01-18 10:40:19 -06:00 committed by GitHub
parent 6d86a0fd97
commit fe105451b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,9 +40,11 @@ void Trick::Threads::clear_scheduled_queues() {
void Trick::Threads::dump( std::ostream & oss ) { void Trick::Threads::dump( std::ostream & oss ) {
oss << "Trick::Threads (" << name << ")" << std::endl ; oss << "Trick::Threads (" << name << ")" << std::endl ;
oss << " process_type = " ; oss << " process_type = " ;
// Regardless of type, amf_cycle is used to store the cycle time set.
// If thread_id is 0 which means main thread, amf_cycle can't be set so the init value 0 will be dumped.
switch ( process_type ) { switch ( process_type ) {
case PROCESS_TYPE_SCHEDULED: oss << "scheduled" << std::endl ; break ; case PROCESS_TYPE_SCHEDULED: oss << "scheduled = " << amf_cycle << std::endl ; break ;
case PROCESS_TYPE_ASYNC_CHILD: oss << "asynchronous" << std::endl ; break ; case PROCESS_TYPE_ASYNC_CHILD: oss << "asynchronous = " << amf_cycle << std::endl ; break ;
case PROCESS_TYPE_AMF_CHILD: oss << "asynchronous must finish with amf_cycle = " << amf_cycle << std::endl ; break ; case PROCESS_TYPE_AMF_CHILD: oss << "asynchronous must finish with amf_cycle = " << amf_cycle << std::endl ; break ;
} }
trigger_container.getThreadTrigger()->dump(oss) ; trigger_container.getThreadTrigger()->dump(oss) ;