From 2dbeb88db40a64f2a3489e8e0da57b250500980e Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Tue, 9 Dec 2014 11:22:19 -0800 Subject: [PATCH] Fix PyEventPort for changes in upstream interface --- capnp/helpers/asyncHelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capnp/helpers/asyncHelper.h b/capnp/helpers/asyncHelper.h index 0ab2e39..7d1b7ba 100644 --- a/capnp/helpers/asyncHelper.h +++ b/capnp/helpers/asyncHelper.h @@ -10,12 +10,12 @@ public: // We don't need to incref/decref, since this C++ class will be owned by the Python wrapper class, and we'll make sure the python class doesn't refcount to 0 elsewhere. // Py_INCREF(py_event_port); } - virtual void wait() { + virtual bool wait() { GILAcquire gil; PyObject_CallMethod(py_event_port, const_cast("wait"), NULL); } - virtual void poll() { + virtual bool poll() { GILAcquire gil; PyObject_CallMethod(py_event_port, const_cast("poll"), NULL); }