Commit a62c41e0 authored by Denis Bilenko's avatar Denis Bilenko

core: add 'origflags' property to loop class

parent aed644bc
......@@ -387,6 +387,16 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
return value
return backend
property origflags:
def __get__(self):
return _flags_to_list(self._ptr.origflags)
property origflags_int:
def __get__(self):
return self._ptr.origflags
def io(self, int fd, int events, ref=True):
return io(self, fd, events, ref)
......
......@@ -58,6 +58,7 @@ cdef extern from "libev.h":
int activecnt
int backend_fd
int sigfd
unsigned int origflags
struct ev_io:
int fd
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment