Skip to content

Commit

Permalink
MtQ: integrate with dom
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Oct 5, 2024
1 parent c6c07d0 commit 264a217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/thread/MtInQueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ class MtInQueue

// shall be called in main thread ONLY!!!
template<class aEleType> bool setHdlrOK(const EleHdlr&);
bool setHdlrOK(const DftHdlr& aHdlr = [](ELE_TID&){ WRN("(MtQ) discard 1 ele since no handler"); });
bool setHdlrOK(const DftHdlr& aHdlr = [](ELE_TID& aEle_tid)
{
WRN("(MtQ) discard 1 ele(=" << aEle_tid.second.name() << ") since no handler");
});
size_t handleAllEle();
auto nHdlr() const { return tid_hdlr_S_.size(); }
void clearHdlrPool();
Expand Down

0 comments on commit 264a217

Please sign in to comment.