Skip to main content

isActive

bool isActive();

New in SST 16.1

Check whether a clock handler is currently active, meaning SST will call it on the next cycle of its clock. A handler is inactive after it has been deactivated with deactivate() or unregisterClock(), or after it returned true.

Parameters​

  • returns (bool) True if the handler is active, false otherwise

Example​

void example::handleEvent(SST::Event* ev)
{
queue.push(ev);
if ( !clockHandler->isActive() ) {
clockHandler->activate();
}
}
#include <sst/core/clock.h>