Skip to content

Commit

Permalink
Modify TimesliceReceiver to put the end work item back for other cons…
Browse files Browse the repository at this point in the history
…umers.
  • Loading branch information
cuveland committed Sep 7, 2016
1 parent 58323bc commit 4037ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fles_ipc/TimesliceReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ TimesliceView* TimesliceReceiver::do_get()
#endif
if (recvd_size == 0) {
eos_ = true;
// put end work item back for other consumers
work_items_mq_->send(nullptr, 0, 0);
return nullptr;
}
assert(recvd_size == sizeof(wi));
Expand Down

0 comments on commit 4037ead

Please sign in to comment.