EventLoop: thread-safe idle_add and timeout_add
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Dec 2012 02:31:18 +0000 (18:31 -0800)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Dec 2012 02:39:20 +0000 (18:39 -0800)
commit5c9bd5c9893e6f852b8dc38c2463f3f7f43122e4
tree0c09c3e21c47b450d0389d0b868c6eb8e80a1209
parentd93959f2f295b47a0b17c33ee8df1633a0e479ee
EventLoop: thread-safe idle_add and timeout_add

This may be useful for using threads to handle blocking IO with Jython,
since Jython lacks the fcntl module which is needed for non-blocking IO
(see http://bugs.jython.org/issue1074).
pym/portage/util/_eventloop/EventLoop.py