Rt event for bidirectional exchange of events in the ESM context. E.g. this is used to trigger a task execution cycle of UserDefinedEventTask. In this case the task is the subscriber of the event. Instances of this will be created by the configuration of ESM and can be get with the RtEventManagerProxy.
More...
#include <RtEvent.hpp>
|
| RtEvent (const String &nameArg) |
| Constructs an RtEvent instance.
|
|
| RtEvent (const RtEvent &arg)=delete |
| Copy constructor.
|
|
RtEvent & | operator= (const RtEvent &arg)=delete |
| Assignment operator.
|
|
| ~RtEvent (void)=default |
| Destructs this instance and frees all resources.
|
|
String | GetName () |
| Returns the identifier of the rt event. More...
|
|
void | Set (void) |
| Signals the event to the subscriber.
|
|
bool | SetAndWaitOne (unsigned long timeout=0) |
| Signals the event to the subscriber and waits blocking on the done by the subscriber. More...
|
|
bool | IsSubscriberReady (void) |
| Returns state of the subscriber to processing incoming signaled events. More...
|
|
bool | WaitOne (unsigned long timeout=0, bool setSubscriberReady=true) |
| Waits blocking on the signal of the sender. More...
|
|
void | Done (void) |
| Signals that the event was processed by the subscriber to the sender.
|
|
void | SetSubscriberReady (bool isSubscriberReadyArg) |
| Sets the state of the subscriber to processing incoming signaled events. More...
|
|
|
| RtEvent (const String &nameArg, uint32 value) |
| Constructs an RtEvent instance. - For internal use only!
|
|
Rt event for bidirectional exchange of events in the ESM context. E.g. this is used to trigger a task execution cycle of UserDefinedEventTask. In this case the task is the subscriber of the event. Instances of this will be created by the configuration of ESM and can be get with the RtEventManagerProxy.
◆ GetName()
String Arp::Plc::Commons::Esm::RtEvent::GetName |
( |
void |
| ) |
|
|
inline |
Returns the identifier of the rt event.
- Returns
- The identifier of the rt event.
◆ IsSubscriberReady()
bool Arp::Plc::Commons::Esm::RtEvent::IsSubscriberReady |
( |
void |
| ) |
|
|
inline |
Returns state of the subscriber to processing incoming signaled events.
- Returns
- State of the subscriber. "true" marks the subscriber is ready to processing incoming signaled events.
◆ SetAndWaitOne()
bool Arp::Plc::Commons::Esm::RtEvent::SetAndWaitOne |
( |
unsigned long |
timeout = 0 | ) |
|
Signals the event to the subscriber and waits blocking on the done by the subscriber.
- Parameters
-
timeout | Timeout in milliseconds to wait for the done to become processed. If the value is set to 0 (default) the calling thread will wait infinitely or until the event is signaled. |
- Returns
- Returns false if the timeout was reached before the event was signaled, otherwise true is returned.
◆ SetSubscriberReady()
void Arp::Plc::Commons::Esm::RtEvent::SetSubscriberReady |
( |
bool |
isSubscriberReadyArg | ) |
|
|
inline |
Sets the state of the subscriber to processing incoming signaled events.
- Parameters
-
isSubscriberReadyArg | The state of the subscriber. "true" marks the subscriber is ready to processing incoming signaled events. |
◆ WaitOne()
bool Arp::Plc::Commons::Esm::RtEvent::WaitOne |
( |
unsigned long |
timeout = 0 , |
|
|
bool |
setSubscriberReady = true |
|
) |
| |
Waits blocking on the signal of the sender.
- Parameters
-
timeout | Timeout in milliseconds to wait for the incoming signal of sender. If the value is set to 0 (default) the calling thread will wait infinitely or until the event is set. |
setSubscriberReady | If the parameter true, the method sets the subscriber ready implicit. Default is this parameter true. |
- Returns
- Returns false if the timeout was reached before the event was signaled, otherwise true is returned.
The documentation for this class was generated from the following file: