Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ThreadRelay::Relay0< ClassType, MethodType, Ret > Class Template Referencefinal

Template for a method having 0 arguments. More...

#include <ThreadRelay.h>

Inheritance diagram for sf::ThreadRelay::Relay0< ClassType, MethodType, Ret >:
Collaboration diagram for sf::ThreadRelay::Relay0< ClassType, MethodType, Ret >:

Public Member Functions

 Relay0 (ThreadRelay &tr, ClassType *cls, MethodType mtd, Ret &ret)
 
- Public Member Functions inherited from sf::ThreadRelay::RelayBase
 RelayBase (ThreadRelay &tr)
 Constructor.
 
virtual ~RelayBase ()=default
 Default virtual destructor.
 
 operator bool ()
 Blocks the thread when the thread id is different then the thread which created the ThreadRelay instance.
 

Additional Inherited Members

- Protected Attributes inherited from sf::ThreadRelay::RelayBase
std::atomic< bool > _sentry {false}
 Prevents the execution of the method more the once.
 
ThreadRelay_tr
 Prevents the execution of the method more the once.
 
Semaphore _semaphore
 Holds the semaphore to stop the thread until the method is executed.
 
friend ThreadRelay
 

Detailed Description

template<typename ClassType, typename MethodType, typename Ret>
class sf::ThreadRelay::Relay0< ClassType, MethodType, Ret >

Template for a method having 0 arguments.

Constructor & Destructor Documentation

◆ Relay0()

template<typename ClassType , typename MethodType , typename Ret >
sf::ThreadRelay::Relay0< ClassType, MethodType, Ret >::Relay0 ( ThreadRelay tr,
ClassType *  cls,
MethodType  mtd,
Ret &  ret 
)
inline

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