The python portion of the shared memory provider
BOOST_PYTHON_MODULE(ScryUnlimitedCommunicator) | |
{ | |
Py_Initialize(); | |
class_<SeralizedPythonSharedMemoryConsumer, boost::noncopyable>("SeralizedSharedMemoryConsumer",init<std::string>()) | |
.def("set_callable", &SeralizedPythonSharedMemoryConsumer::set_callable) | |
.def("start",&SeralizedPythonSharedMemoryConsumer::start) | |
.def("wait",&SeralizedPythonSharedMemoryConsumer::wait); | |
class_<ImagePythonSharedMemoryConsumer, boost::noncopyable>("ImageSharedMemoryConsumer",init<std::string>()) | |
.def("set_callable", &ImagePythonSharedMemoryConsumer::set_callable) | |
.def("start",&ImagePythonSharedMemoryConsumer::start) | |
.def("wait",&ImagePythonSharedMemoryConsumer::wait); | |
class_<SeralizedSharedMemoryProducer, boost::noncopyable>("SeralizedSharedMemoryProducer",init<std::string>()) | |
.def("write_data", &SeralizedSharedMemoryProducer::write_data); | |
class_<ImageSharedMemoryProducer, boost::noncopyable>("ImageSharedMemoryProducer",init<std::string>()) | |
.def("write_data", &ImageSharedMemoryProducer::write_data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment