move QCoreApplication::addLibraryPath call from KApplication to KComponentData

Maksim Orlovich mo85 at cornell.edu
Wed Nov 12 19:15:27 GMT 2008


> You can use a mutex to ensure that only one initialisation happens and, if
> any
> other threads enter that code path, they will wait for the initialisation
> to
> finish.
>
> That's what a function-local static does in gcc:
>
> 	static bool initialised = lazyInit();

kdelibs is built with -fno-threadsafe-statics, though; doesn't it disable
this?







More information about the kde-core-devel mailing list