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

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

#include <ThreadRelay.h>

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

Public Member Functions

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

Template for a method having 2 arguments.

Constructor & Destructor Documentation

◆ Relay2()

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

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