[Python-Dev] Signals+Threads (PyGTK waking up 10x/sec).
Gustavo Carneiro
gjcarneiro at gmail.com
Tue Dec 11 01:07:09 CET 2007
On 10/12/2007, Guido van Rossum <guido at python.org> wrote:
>
> > Adam & I are now on #python-dev. Can you join?
>
> I think we successfully resolved this. Adam Olsen will produce a patch
> that allows one to specify a single file descriptor to which a zero
> byte will be written by the C-level signal handler. Twisted and PyGTK
> will have to coordinate about this file descriptor. Glyph believes
> this is possible and sufficient.
Great that a solution was found at last. But to be honest I don't
understand why my patch (the second one) is not good. Why is it preferable
for libraries to provide their own file descriptor?
Are people concerned about the overhead of always creating a pipe even it
may not be used?
Always creating a pipe would at least avoid the need for any "coordination"
between PyGTK and Twisted.
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20071211/12ceaf00/attachment.htm
More information about the Python-Dev
mailing list