[GUI] Another call for votes
Wolfgang Thaller
wolfgang.thaller@gmx.net
Tue, 18 Mar 2003 00:39:07 +0100
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