equal
deleted
inserted
replaced
23 When the event fires, it will "call" this event object (see docs for __call__()). |
23 When the event fires, it will "call" this event object (see docs for __call__()). |
24 |
24 |
25 The lifetime of event objects is slightly non-trivial, in that they will actually hold a reference to |
25 The lifetime of event objects is slightly non-trivial, in that they will actually hold a reference to |
26 themselves while "active". In other words, .add() will aquire an internal reference, which will be released |
26 themselves while "active". In other words, .add() will aquire an internal reference, which will be released |
27 before the __call__(). |
27 before the __call__(). |
|
28 |
|
29 XXX: it might be better for refcounting if the event_base were to keep a reference to each event |
|
30 XXX: or if we kept a reference to the event_base? Might be even better |
|
31 |
|
32 XXX: propagate errors (including e.g. KeyboardInterrupt?) from __call__ to event_base.loop()? |
28 """ |
33 """ |
29 |
34 |
30 # the underlying event object |
35 # the underlying event object |
31 cdef lib.event *ev |
36 cdef lib.event *ev |
32 |
37 |