Skip to content

Commit

Permalink
JApplication: expose ticker state
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Jul 25, 2022
1 parent 55ce7f2 commit 7acd2ba
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 @@ -265,6 +265,10 @@ void JApplication::SetTicker(bool ticker_on) {
m_ticker_on = ticker_on;
}

bool JApplication::IsTickerEnabled() {
return m_ticker_on;
}

void JApplication::SetTimeoutEnabled(bool enabled) {
m_timeout_on = enabled;
}
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 @@ -85,6 +85,7 @@ class JApplication {
bool IsDrainingQueues(void) { return m_draining_queues; }

void SetTicker(bool ticker_on = true);
bool IsTickerEnabled();
void SetTimeoutEnabled(bool enabled = true);
bool IsTimeoutEnabled();
void PrintStatus();
Expand Down

0 comments on commit 7acd2ba

Please sign in to comment.