DASH  0.3.0
dash::coarray::CoEventRef Class Reference

Public Member Functions

 CoEventRef (const gptr_t &gptr, Team &team=dash::Team::Null())
 
void post () const
 post an event to this unit. More...
 
int test () const
 returns the number of arrived events at this unit More...
 
Teamteam ()
 
bool operator== (const self_t &other) const noexcept
 
bool operator!= (const self_t &other) const noexcept
 

Detailed Description

Definition at line 13 of file CoEventRef.h.

Member Function Documentation

◆ post()

void dash::coarray::CoEventRef::post ( ) const
inline

post an event to this unit.

This function is thread-safe

Definition at line 34 of file CoEventRef.h.

34  {
35  DASH_LOG_DEBUG("post event to gptr", _gptr);
36  GlobRef<event_ctr_t> gref(_gptr);
37  gref.add(1);
38  DASH_LOG_DEBUG("event posted");
39  }

◆ test()

int dash::coarray::CoEventRef::test ( ) const
inline

returns the number of arrived events at this unit

Definition at line 44 of file CoEventRef.h.

References dash::Team::All().

44  {
45  DASH_LOG_DEBUG("test for events on", _gptr);
46  GlobRef<event_ctr_t> gref(_gptr);
47  return gref.load();
48  }

The documentation for this class was generated from the following file: