ComputationalRadiationPhysics / graybat

Graph Approach for Highly Generic Communication Schemes Based on Adaptive Topologies :satellite:
Other
8 stars 4 forks source link

Add probe to communication policy interface #132

Closed erikzenker closed 7 years ago

erikzenker commented 7 years ago

Adds a probe method to the communication policy interface with the following signature:

struct Status {
 VAddr source();
 Tag tag();
 template<typename T> std::size_t size();
}

Status probe(VAddr srcVAddr, Tag tag, const Context& context) ;

probe blocks until a message for the particular vAddr, tag and context was received. It returns a status object once a message is received.