Re: KSyCoca, Thread safety, and Cache invalidation

2015-06-13 Thread David Faure
On Saturday 13 June 2015 02:04:03 Vishesh Handa wrote: > 3. The gui thread on receiving the dbus signal updates its db as well > as the database of all other threads. This is slightly complex and > would require locking code similar to (2) since the other threads > could be in the process of using

Re: KSyCoca, Thread safety, and Cache invalidation

2015-06-13 Thread Ivan Čukić
> 7. the gui thread listens to dbus and sends a signal to the other threads? It can not send signals since those are not loopy threads. There is no need for a lot of locking if you put one instance of KSycoca. You could do something like this (class names are not real :) ): class MainThread {