#include <hps.h>
Public Member Functions | |
virtual void | Assign (EventNotifier const &in_that) |
EventNotifier () | |
EventNotifier (EventNotifier const &in_that) | |
EventNotifier (EventNotifier &&in_that) | |
HPS::Type | ObjectType () const |
EventNotifier & | operator= (EventNotifier &&in_that) |
EventNotifier & | operator= (EventNotifier const &in_that) |
Event::Status | Status () const |
void | Wait () const |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The EventNotifier class is a smart pointer that is tied to an event object. It is a special type of control that is used for synchronizing with an event's completion.
HPS::EventNotifier::EventNotifier | ( | ) |
The default constructor creates an EventNotifier object not tied to any event.
HPS::EventNotifier::EventNotifier | ( | EventNotifier const & | in_that | ) |
The copy constructor creates a new EventNotifier that is tied to the same event as the source EventNotifier.
in_that | The source EventNotifier to copy. |
HPS::EventNotifier::EventNotifier | ( | EventNotifier && | in_that | ) |
The move constructor creates an EventNotifier by transferring the underlying impl of the rvalue reference to this Key thereby avoiding a copy and allocation.
in_that | An rvalue reference to an EventNotifier to take the impl from. |
|
virtual |
Share the underlying smart-pointer of the EventNotifier source.
in_that | The EventNotifier source of the assignment. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
EventNotifier& HPS::EventNotifier::operator= | ( | EventNotifier && | in_that | ) |
EventNotifier& HPS::EventNotifier::operator= | ( | EventNotifier const & | in_that | ) |
Share the underlying smart-pointer of the EventNotifier source.
in_that | The EventNotifier source of the assignment. |
Event::Status HPS::EventNotifier::Status | ( | ) | const |
Query the status of the event this notifier is tied to.
void HPS::EventNotifier::Wait | ( | ) | const |
Cause this thread to sleep until the event this notifier is tied to has been handled.