ruby: adds size and empty apis to the msg buffer stallmap

This commit is contained in:
David Hashe 2015-07-20 09:15:18 -05:00
parent 21aa5734a0
commit 967cfa939a
2 changed files with 4 additions and 0 deletions

View file

@ -45,6 +45,8 @@ structure(InPort, external = "yes", primitive="yes") {
Cycles dequeue();
void recycle();
bool isEmpty();
bool isStallMapEmpty();
int getStallMapSize();
}
external_type(NodeID, default="0", primitive="yes");

View file

@ -123,6 +123,8 @@ class MessageBuffer
void recycle();
bool isEmpty() const { return m_prio_heap.size() == 0; }
bool isStallMapEmpty() { return m_stall_msg_map.size() == 0; }
unsigned int getStallMapSize() { return m_stall_msg_map.size(); }
void
setOrdering(bool order)