Skip to content

Commit

Permalink
Add simple doc strings to pybind11 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 2, 2022
1 parent ac2ed88 commit 0888f70
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/lsst/base/threads.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ namespace lsst {
namespace base {

PYBIND11_MODULE(threads, mod) {
mod.def("haveThreads", &lsst::base::haveThreads);
mod.def("setNumThreads", &lsst::base::setNumThreads);
mod.def("getNumThreads", &lsst::base::getNumThreads);
mod.def("disableImplicitThreading", &lsst::base::disableImplicitThreading);
mod.def("haveThreads", &lsst::base::haveThreads, "Are threaded packages available?");
mod.def("setNumThreads", &lsst::base::setNumThreads, "Set number of threads to use.");
mod.def("getNumThreads", &lsst::base::getNumThreads, "Get maximum number of threads we might use.");
mod.def("disableImplicitThreading", &lsst::base::disableImplicitThreading,
"Disable threading that has not been set explicitly.");
}

} // lsst
} // base
} // base

0 comments on commit 0888f70

Please sign in to comment.