class StopIndicator
Defined at line 26 of file ../../src/zircon/bin/hwstress/cpu_stressor.h
A StopIndicator is a light-weight class allowing one thread to indicate to
one or more other threads when it should stop.
Unlike an event, it does not support blocking: just polling of the |ShouldStop|
method.
StopIndicator is thread-safe.
Public Methods
void StopIndicator ()
Defined at line 28 of file ../../src/zircon/bin/hwstress/cpu_stressor.h
bool ShouldStop ()
Determine if we should stop.
Defined at line 34 of file ../../src/zircon/bin/hwstress/cpu_stressor.h
void Stop ()
Indicate that other threads should stop.
Defined at line 70 of file ../../src/zircon/bin/hwstress/cpu_stressor.cc