Add a Port poll operation

This commit is contained in:
Drew Galbraith 2023-06-16 23:15:28 -07:00
parent 21b73b5b92
commit 35f24e7c77
6 changed files with 49 additions and 0 deletions

View file

@ -73,3 +73,8 @@ z_err_t Port::Read(ZMessage& msg) {
return Z_OK;
}
bool Port::HasMessages() {
MutexHolder h(mutex_);
return pending_messages_.size() != 0;
}