Re: Another call for votes

Wolfgang Thaller <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
Glynn Clements wrote:

> The problem is that a toolkit may not be at all re-entrant; i.e.
> calling any toolkit function while another toolkit function is being
> executed may have undesirable consequences.

Exactly.

In the worst case, the CGA, when invoked from another thread, would 
have to wait for the next timer callback to come around in order to 
gain access to the exclusive lock on the backend toolkit, which might 
have some performance implications for CGA functions executed from 
"background" threads (but this performance penalty is not paid for 
every call - after the first call, you probably get several more "for 
free", because the backend toolkit has not yet been re-entered by 
another thread).

Cheers,

Wolfgang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.