Op 8-10-2013 14:30, Jean-Marc Lasgouttes schreef:
08/10/2013 14:24, Jean-Marc Lasgouttes:
07/10/2013 23:24, Georg Baum:
I don't remember the mutex story, however the problem is surely due to
the static output buffer in iconv_convert. The question is: why was it
made static?
For performance reasons (see r14854), and I believe that removing the
static
keyword would be quite visible in the profiler.
Is there something like per-thread static storage? We do not really need
mutexes, since it is not concurrent access to the same information.
For example, is the following useful?
http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_local_storage.html
JMarc
I tried to use QThreadStorage, which works on Windows, but on Linux I
keep getting segmentation faults.
http://git.lyx.org/?p=developers/vfr/lyx.git;a=blobdiff;f=src/support/unicode.cpp;h=e8ede4f086c47101c5e34ce0ff6e7b3da6bb477c;hp=95415a5538e45ad11a4ed4695c5b277ae79024c3;hb=9e0ef6d9e11d6d31ec3a6e271266563e4089703b;hpb=c6c07d28ae99a0dee5fc4b76aae2827d3d09cf93
Vincent