texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] One more patch to cut&paste


From: Josef Weidendorfer
Subject: Re: [Texmacs-dev] One more patch to cut&paste
Date: Thu, 11 Jun 2009 20:44:17 +0200
User-agent: KMail/1.9.10

Hi,

On Thursday 11 June 2009, Norbert Nemec wrote:
> Also, I am not fully content with the idling loop that is running to 
> catch socket communications.

Just a comment here: busy polling (on sockets, for timers, ...)
in user space never should be needed.

On Unix, the select() system call allows to wait for arbitrary file
descriptors to become ready, including sockets, and has a timeout to
allow for the implementation of timers. I am quite sure that Qt
internally uses this.
To wait on sockets in Qt (data to read available, error condition, ...)
with the standard event loop (thus, without polling), use QSocketNotifier.
And any "texmacs internal timers" should be based on QTimer.

Josef




reply via email to

[Prev in Thread] Current Thread [Next in Thread]