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

Template for a method having 1 argument. More...

#include <ThreadRelay.h>

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

Public Member Functions

 Relay1 (ThreadRelay &tr, ClassType *cls, MethodType mtd, Ret &ret, Arg1 &arg1)
 
- 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, typename Arg1>
class sf::ThreadRelay::Relay1< ClassType, MethodType, Ret, Arg1 >

Template for a method having 1 argument.

Constructor & Destructor Documentation

◆ Relay1()

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

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