diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-24 17:26:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-27 23:22:10 +0200 |
commit | 7ae8c8719497ec7556f532bab061d3758976f792 (patch) | |
tree | 8ace2300cebcf6926c7053e3f23a5f68c304ad98 /common/clientapi.cpp | |
parent | 4430eabdfeddf02c20424508a2a4207b6b4a764e (diff) | |
download | sink-7ae8c8719497ec7556f532bab061d3758976f792.tar.gz sink-7ae8c8719497ec7556f532bab061d3758976f792.zip |
Mode FacadeFactory to separate file, mutex protected it, and loaded
resource
The factory is potentially used from several queries simultaneously,
so it's now mutex protected.
Additionally we try to load the plugins directly in the factory.
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r-- | common/clientapi.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp index c19ea4f..a98340c 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp | |||
@@ -28,13 +28,9 @@ namespace async | |||
28 | }; | 28 | }; |
29 | } // namespace async | 29 | } // namespace async |
30 | 30 | ||
31 | namespace Akonadi2 | ||
32 | { | ||
33 | 31 | ||
34 | void FacadeFactory::registerStaticFacades() | 32 | namespace Akonadi2 |
35 | { | 33 | { |
36 | registerFacade<Akonadi2::ApplicationDomain::AkonadiResource, ResourceFacade>("resourceconfig"); | ||
37 | } | ||
38 | 34 | ||
39 | void Store::shutdown(const QByteArray &identifier) | 35 | void Store::shutdown(const QByteArray &identifier) |
40 | { | 36 | { |