[fpc-devel] cwstring and threads
Marco van de Voort
marcov at stack.nl
Mon Apr 17 15:06:21 CEST 2006
> Martin Schreiber wrote:
> > On Sunday 16 April 2006 10.51, Florian Klaempfl wrote:
> >> Martin Schreiber wrote:
> >>> Hi,
> >>> Is cwstring threadsave?
> >>> I suspect there is a problem.
> >> The only problem I could imagine is that the caching of of the iconv_t
> >> handles causes problem, since they could be accessed multiple times
> >> without lock.
> > The problems are gone with locking.
> Locking or creating this handles locally might have a heavy impact on
> performance. Anbody a good idea?
Since cwstring afaik is alreay pluggable, have a threadsafe manager and a
non-threadsafe mgr ?
cwstring and cwstring_r ? (:-)
More information about the fpc-devel