The base abstract class for CYISignal.
- See also
- CYISignal
-
CYISignalHandler
#include <signal/YiSignalBase.h>
| CYISignalBase::CYISignalBase |
( |
| ) |
|
|
protected |
| virtual CYISignalBase::~CYISignalBase |
( |
| ) |
|
|
protectedvirtual |
Disconnects a single connection identified by connectionID. If no such connection exists, this function has no effect.
- Note
- This function is thread-safe.
Disconnects every daisy-chained connections between this signal and the given signal.
- Note
- This is done automatically when the CYISignal goes out of scope or is deleted.
-
This function is thread-safe.
- See also
- CYISignalHandler::Disconnect(CYISignalHandler &rSignalHandler)
template<class YI_SIGNAL_EMIT_EVENT >
A helper function for emiting signals of type YI_CONNECTION_ASYNC and YI_CONNECTION_ASYNC_BLOCK. For YI_CONNECTION_ASYNC_BLOCK connection types, the function will automatically attach the signal emit event onto the UnblockAsyncBlock() slot. As soon as the event is done processing, the UnblockAsyncBlock() slot will automatically be called.
- Note
- This function is thread-safe.
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.
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.
| 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.
| virtual bool CYISignalBase::IsConnected |
( |
| ) |
const |
|
overridevirtual |
| virtual bool CYISignalBase::IsConnected |
( |
const CYISignalBase & |
rSignal | ) |
const |
|
overridevirtual |
| bool CYISignalBase::IsConnected |
( |
const CYISignalHandler & |
rSignalHandler | ) |
const |
Checks if a connection has been established and is identified by connectionID.
- Note
- This function is thread-safe.
- See also
- IsConnected() const
| void CYISignalBase::RegisterToSignalHandler |
( |
const CYISignalHandler & |
rSignalHandler | ) |
|
|
protected |
| void CYISignalBase::RemoveAllConnections |
( |
YI_NOTIFY_FLAG |
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.
| void CYISignalBase::RemoveConnection |
( |
CYISignalHandler & |
rSignalHandler, |
|
|
YI_NOTIFY_FLAG |
notifyHandler |
|
) |
| |
|
protected |
| void CYISignalBase::UnregisterFromSignalHandler |
( |
CYISignalHandler & |
rSignalHandler | ) |
|
|
protected |
The documentation for this class was generated from the following file: