
17 Mar
2003
17 Mar
'03
11:39 p.m.
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