equal
deleted
inserted
replaced
79 |
79 |
80 |
80 |
81 cdef class event_base : |
81 cdef class event_base : |
82 |
82 |
83 def __init__ (self) : |
83 def __init__ (self) : |
|
84 """ |
|
85 Constructs a new event_base with default parameters. |
|
86 """ |
84 |
87 |
85 # construct |
88 # construct |
86 self.ev_base = lib.event_base_new() |
89 self.ev_base = lib.event_base_new() |
87 |
90 |
88 if self.ev_base == NULL : |
91 if self.ev_base == NULL : |
122 Run the event loop. |
125 Run the event loop. |
123 |
126 |
124 once - only run the event loop once, at most |
127 once - only run the event loop once, at most |
125 nonblock - do not block waiting for events |
128 nonblock - do not block waiting for events |
126 |
129 |
127 Returns True if succesfull, False if no events were registered |
130 Returns True if the event loop exited, False if there were no more events to process |
128 """ |
131 """ |
129 |
132 |
130 cdef int flags = 0 |
133 cdef int flags = 0 |
131 |
134 |
132 # build flags |
135 # build flags |