The base abstract class for CYISignal.
- See also
- CYISignal
-
CYISignalHandler
#include <signal/YiSignalBase.h>
◆ CYISignalBase() [1/2]
CYISignalBase::CYISignalBase |
( |
| ) |
|
|
protected |
◆ CYISignalBase() [2/2]
◆ ~CYISignalBase()
virtual CYISignalBase::~CYISignalBase |
( |
| ) |
|
|
protectedvirtual |
◆ CloneConnectionAndConnectTo()
◆ DestroySignalHandler()
void CYISignalBase::DestroySignalHandler |
( |
| ) |
|
|
protected |
◆ Disconnect() [1/3]
◆ Disconnect() [2/3]
Disconnects a single connection identified by connectionID. If no such connection exists, this function has no effect.
- Note
- This function is thread-safe.
◆ Disconnect() [3/3]
◆ ExclusiveLock() [1/2]
Obtains exclusive lock with this CYISignalBase and every CYISignalHandler found in the connection list. This function will keep trying to acquire the locks until every objects are locked. The purpose of this function is to avoid deadlocks.
- Note
- This function must be followed by ExclusiveUnlock();
-
This function is thread-safe.
◆ ExclusiveLock() [2/2]
Obtains exclusive lock with this CYISignalBase and every CYISignalHandler found in the connection list. This function will keep trying to acquire the locks until every objects are locked. The purpose of this function is to avoid deadlocks.
- Note
- This function must be followed by ExclusiveUnlock(rSignalHandler);
-
This function is thread-safe.
◆ ExclusiveUnlock() [1/2]
◆ ExclusiveUnlock() [2/2]
◆ HasConnection()
bool CYISignalBase::HasConnection |
( |
const CYISignalHandler & |
rSignalHandler | ) |
const |
|
protected |
Checks if this instance has a connection to a given CYISignalHandler.
- Warning
- This function is not thread-safe.
◆ IsConnected() [1/4]
virtual bool CYISignalBase::IsConnected |
( |
| ) |
const |
|
overridevirtual |
◆ IsConnected() [2/4]
virtual bool CYISignalBase::IsConnected |
( |
const CYISignalBase & |
rSignal | ) |
const |
|
overridevirtual |
◆ IsConnected() [3/4]
bool CYISignalBase::IsConnected |
( |
const CYISignalHandler & |
rSignalHandler | ) |
const |
◆ IsConnected() [4/4]
Checks if a connection has been established and is identified by connectionID.
- Note
- This function is thread-safe.
- See also
- IsConnected() const
◆ operator=()
◆ RegisterToSignalHandler()
void CYISignalBase::RegisterToSignalHandler |
( |
const CYISignalHandler & |
rSignalHandler | ) |
|
|
protected |
◆ RemoveAllConnections()
void CYISignalBase::RemoveAllConnections |
( |
NotifyFlag |
notifyHandler | ) |
|
|
protected |
Disconnects every connection from every CYISignalHandler and from every static functions. All daisy-chained signals will also be disconnected.
- Warning
- This function is not thread-safe.
◆ RemoveConnection()
void CYISignalBase::RemoveConnection |
( |
CYISignalHandler & |
rSignalHandler, |
|
|
NotifyFlag |
notifyHandler |
|
) |
| |
|
protected |
◆ UnregisterFromSignalHandler()
void CYISignalBase::UnregisterFromSignalHandler |
( |
CYISignalHandler & |
rSignalHandler | ) |
|
|
protected |
◆ CYISignalHandler
◆ m_signalObjects
The documentation for this class was generated from the following file: