Castor3D 0.16.0
Multiplatform 3D engine
|
Thread safe signal class. More...
#include <ThreadSafeSignal.hpp>
Public Types | |
using | connection = my_connection |
Public Member Functions | |
TSSignalT ()=default | |
TSSignalT (TSSignalT &&rhs) noexcept | |
TSSignalT & | operator= (TSSignalT &&rhs) noexcept |
~TSSignalT () noexcept | |
Destructor. | |
my_connection | connect (Function function) |
Connects a new function that will be called if the signal is emitted. | |
void | operator() () const |
Emits the signal, calls every connected function. | |
template<typename ... Params> | |
void | operator() (Params &&... params) const |
Emits the signal, calls every connected function. | |
Friends | |
class | TSConnectionT< TSSignalT< Function > > |
Additional Inherited Members | |
Protected Member Functions inherited from castor::NonCopyable | |
NonCopyable ()=default | |
Constructor. | |
~NonCopyable () noexcept=default | |
Destructor. | |
Thread safe signal class.
using castor::TSSignalT< Function >::connection = my_connection |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
Destructor.
References CU_Require, and castor::makeUniqueLock().
|
inline |
Connects a new function that will be called if the signal is emitted.
[in] | function | The function. |
References castor::makeUniqueLock().
|
inline |
Emits the signal, calls every connected function.
References castor::makeUniqueLock().
|
inline |
Emits the signal, calls every connected function.
[in] | params | The functions parameters. |
References castor::makeUniqueLock().
|
friend |