[Tickit-dev] API change for toplevel Tickit event loop API
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
Mon Jan 28 22:26:30 GMT 2019
I've been working on the toplevel Tickit event loop implementation
lately, working it into a direction where it'll support other event
loop implementations via a vtable of some sort.
I'd like to change the type used for timer IDs from its current `int`,
to `void *`, as in general for other hooked event loops it might not be
possible to represent a timer with an int. Rather than try to maintain
a mapping from integer IDs to 3rd party event loop pointers at the
binding level, easier is to just say "it's an opaque pointer", and the
bindings can do whatever they need in that easier.
Also as a reminder, the entire toplevel event API is still somewhat
experimental, as I'm still not happy that it's right yet - if nothing
else, a lot of the functions may get renamed before 0.3.
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk | https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.leonerd.org.uk/pipermail/tickit-dev/attachments/20190128/32b3aa38/attachment.sig>
More information about the Tickit-dev
mailing list