Skip to content

Commit

Permalink
JApplication: expose timeout state
Browse files Browse the repository at this point in the history
JInspector needs to be able to re-enable the timeout, but only if it was already enabled before
  • Loading branch information
nathanwbrei committed Jul 25, 2022
1 parent 9e76e4b commit 55ce7f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libraries/JANA/JApplication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ void JApplication::SetTimeoutEnabled(bool enabled) {
m_timeout_on = enabled;
}

bool JApplication::IsTimeoutEnabled() {
return m_timeout_on;
}

void JApplication::PrintStatus() {
if (m_extended_report) {
m_processing_controller->print_report();
Expand Down
1 change: 1 addition & 0 deletions src/libraries/JANA/JApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class JApplication {

void SetTicker(bool ticker_on = true);
void SetTimeoutEnabled(bool enabled = true);
bool IsTimeoutEnabled();
void PrintStatus();
void PrintFinalReport();
uint64_t GetNThreads();
Expand Down

0 comments on commit 55ce7f2

Please sign in to comment.