ruby: adds size and empty apis to the msg buffer stallmap
This commit is contained in:
parent
21aa5734a0
commit
967cfa939a
2 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue