[Digikam-devel] Threading in digiKam

Marcel Wiesweg marcel.wiesweg at gmx.de
Mon May 3 16:22:03 BST 2010


> 
> I am also assuming, please correct me if I am wrong, that a single instance
> of LibFace will be created and then shared between threads. Which means
> that we will lock appropriate methods only from being run in separate
> threads at the same time. E.g. things like if one thread updating the face
> recognition config everything else will have to wait. But 2 face
> recognition methods in separate threads can be run at the same time, as
> they are only reading from the config.

Another way to go is if you just document thread-unsafety in the API docs.
It's ok, we just need to know then and use a mutex.



More information about the Digikam-devel mailing list