Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ThreadRelay::Relay4< ClassType, MethodType, Ret, Arg1, Arg2, Arg3, Arg4 > Class Template Referencefinal

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

#include <ThreadRelay.h>

Inheritance diagram for sf::ThreadRelay::Relay4< ClassType, MethodType, Ret, Arg1, Arg2, Arg3, Arg4 >:
Collaboration diagram for sf::ThreadRelay::Relay4< ClassType, MethodType, Ret, Arg1, Arg2, Arg3, Arg4 >:

Public Member Functions

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

Template for a method having 4 arguments.

Constructor & Destructor Documentation

◆ Relay4()

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

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