Fix warning from PyEventPort
This commit is contained in:
@@ -13,11 +13,13 @@ public:
|
|||||||
virtual bool wait() {
|
virtual bool wait() {
|
||||||
GILAcquire gil;
|
GILAcquire gil;
|
||||||
PyObject_CallMethod(py_event_port, const_cast<char *>("wait"), NULL);
|
PyObject_CallMethod(py_event_port, const_cast<char *>("wait"), NULL);
|
||||||
|
return true; // TODO: get the bool result from python
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool poll() {
|
virtual bool poll() {
|
||||||
GILAcquire gil;
|
GILAcquire gil;
|
||||||
PyObject_CallMethod(py_event_port, const_cast<char *>("poll"), NULL);
|
PyObject_CallMethod(py_event_port, const_cast<char *>("poll"), NULL);
|
||||||
|
return true; // TODO: get the bool result from python
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void setRunnable(bool runnable) {
|
virtual void setRunnable(bool runnable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user