Skip to content

Commit

Permalink
add comment for pybind11::nodelete
Browse files Browse the repository at this point in the history
  • Loading branch information
YibinLiu666 committed Jul 13, 2023
1 parent 5a85dba commit e9dc9d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/collective/gloo/src/rendezvous.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ void def_rendezvous_module(pybind11::module &m) {

pybind11::class_<TCPStore,
gloo::rendezvous::Store,
std::unique_ptr<TCPStore, pybind11::nodelete>>(rendezvous,
"TCPStore")
std::unique_ptr<TCPStore, pybind11::nodelete>>(
rendezvous, // why we use pybind11::nodelete:
// https://github.com/pybind/pybind11/issues/3514
"TCPStore")
.def(pybind11::init<std::string, const TCPStoreOptions &>())
.def("wait",
pybind11::overload_cast<const std::vector<std::string> &>(
Expand Down

0 comments on commit e9dc9d1

Please sign in to comment.