ifw-slm 0.1.2
 
Loading...
Searching...
No Matches
ifw::slm::BlockingActivity Class Reference
Inheritance diagram for ifw::slm::BlockingActivity:
ifw::slm::KillableThreadActivity

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
 
KillableThreadActivityoperator= (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}
 

Detailed Description

Activity that blocks until signaled to stop. Used to test the kill/detach behavior.

Constructor & Destructor Documentation

◆ BlockingActivity()

ifw::slm::BlockingActivity::BlockingActivity ( const std::string & id)
inlineexplicit

Member Function Documentation

◆ JoinThread()

void ifw::slm::KillableThreadActivity::JoinThread ( )
override

◆ Run()

void ifw::slm::BlockingActivity::Run ( )
inlineoverridevirtual

◆ StartThread()

void ifw::slm::KillableThreadActivity::StartThread ( )
override

◆ Stop()

void ifw::slm::BlockingActivity::Stop ( )
inline

Member Data Documentation

◆ running

std::atomic<bool> ifw::slm::BlockingActivity::running {false}

◆ should_stop

std::atomic<bool> ifw::slm::BlockingActivity::should_stop {false}

The documentation for this class was generated from the following file: