Folly Futures to Python Asyncio Futures Bridge
[folly.git] / folly / python / executor.pxd
diff --git a/folly/python/executor.pxd b/folly/python/executor.pxd
new file mode 100644 (file)
index 0000000..ab4c51b
--- /dev/null
@@ -0,0 +1,12 @@
+from libcpp.memory cimport unique_ptr
+from folly cimport cFollyExecutor
+
+cdef extern from "folly/python/NotificationQueueExecutor.h" namespace "folly::python":
+    cdef cppclass cNotificationQueueExecutor "folly::python::NotificationQueueExecutor"(cFollyExecutor):
+        int fileno()
+        void drive()
+
+cdef class NotificationQueueExecutor:
+    cdef unique_ptr[cNotificationQueueExecutor] cQ
+
+cdef api cFollyExecutor* get_executor()