Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
Signed-off-by: szc321 <[email protected]>
  • Loading branch information
szc321 committed Jun 1, 2023
1 parent 7800618 commit 8351f93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ void ShmemRecvPort::QueueRecv() {
while (!done_.load()) {
bool ret = false;
if (this->recv_queue_->AvailableCount() > 0) {
bool not_empty = recv_queue_->Probe();
ret = shm_->Load([this, &not_empty](void* data){
ret = shm_->Load([this](void* data){
MetaDataPtr metadata_res = std::make_shared<MetaData>();
MetaDataPtrFromPointer(metadata_res, data,
nbytes_ - sizeof(MetaData));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class RecvPortProxy : public PortProxy {
py::object Peek();
std::string Name();
size_t Size();
void SetObserver(std::function<void()> obs);

private:
py::object MDataToObject_(MetaDataPtr metadata);
Expand Down

0 comments on commit 8351f93

Please sign in to comment.