Public Member Functions | |
| BlockingActivity (const std::string &id) | |
| void | Run () override |
| void | Stop () |
| void | StartThread () override |
| void | JoinThread () override |
Public Member Functions inherited from ifw::slm::KillableThreadActivity | |
| KillableThreadActivity (const KillableThreadActivity &)=delete | |
| KillableThreadActivity & | operator= (const KillableThreadActivity &)=delete |
| pthread_t | GetNativeHandle () const override |
| bool | IsThreadJoined () const override |
Public Attributes | |
| std::atomic< bool > | running {false} |
| std::atomic< bool > | should_stop {false} |
Additional Inherited Members | |
Protected Member Functions inherited from ifw::slm::KillableThreadActivity | |
| void | StartThread () override |
| void | JoinThread () override |
Protected Attributes inherited from ifw::slm::KillableThreadActivity | |
| std::atomic< bool > | m_killed {false} |
| std::atomic< int > | m_thread_generation {0} |
Activity that blocks until signaled to stop. Used to test the kill/detach behavior.
|
inlineexplicit |
|
override |
|
inlineoverridevirtual |
Implements ifw::slm::KillableThreadActivity.
|
override |
|
inline |
| std::atomic<bool> ifw::slm::BlockingActivity::running {false} |
| std::atomic<bool> ifw::slm::BlockingActivity::should_stop {false} |