Skip to content

tracker-miner-fs: Delegate TrackerEndpoint to a separate thread

Carlos Garnacho requested to merge wip/carlosg/endpoint-thread into master

The TrackerEndpointDBus set up here dispatches the incoming D-Bus requests in the main context that is thread default at the time of creating the endpoint. Currently this is the main thread, so incoming SPARQL queries coming from external users might be delayed by other miner activity (such as handling filesystem changes).

Move it to a separate dedicated thread, so that external SPARQL queries are unimpeded by main thread activity. The underlying TrackerSparqlConnection object handling both internal and external queries can be used from any thread.

Closes: tracker#382

Merge request reports