Class Handle

Class Documentation

class Handle

Handle.

Handles act as identifiers for a spawning event. Handles are mainly used to wait for termination of asynchronous operations, via the waitForCompletion(Handle &handle) method.

Public Functions

Handle()

Constructor. Initialize the newly created object to a null value.

Handle(typename impl::HandleTrait<TargetSystemTag>::HandleTy id)

Constructor. Initialize the newly created object with a specific Handle ID.

Parameters
  • id: The Handle ID to be assigned.

Handle(const Handle &rhs)

Copy-Constructor.

Parameters
  • rhs: The right-hand side of the operator.

Handle(Handle &&rhs)

Move-Constructor.

Handle &operator=(const Handle &rhs)

Copy-Assigment.

Handle &operator=(Handle &&rhs)

Move-Assigment.

operator uint64_t() const

Coverson operator to uint64_t.

bool IsNull() const

Null Test.

Return
true if the Handle is null, false otherwise.

Friends

friend shad::rt::Handle::impl::AsynchronousInterface< TargetSystemTag >
bool operator==(const Handle &lhs, const Handle &rhs)

Operator equal.