diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 17:06:01 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 17:06:01 +0100 |
commit | 36ba8e177e519974296ff368544fc994896497c6 (patch) | |
tree | 0f92b05101bcafda905da0055f1050e92b7f13ea /common/facade.cpp | |
parent | aa6152901c01454758d270c65d99619ce61b1d75 (diff) | |
download | sink-36ba8e177e519974296ff368544fc994896497c6.tar.gz sink-36ba8e177e519974296ff368544fc994896497c6.zip |
Docs
Diffstat (limited to 'common/facade.cpp')
-rw-r--r-- | common/facade.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/facade.cpp b/common/facade.cpp index 95fecd9..540c364 100644 --- a/common/facade.cpp +++ b/common/facade.cpp | |||
@@ -32,6 +32,11 @@ using namespace Sink; | |||
32 | #undef DEBUG_AREA | 32 | #undef DEBUG_AREA |
33 | #define DEBUG_AREA "client.facade" | 33 | #define DEBUG_AREA "client.facade" |
34 | 34 | ||
35 | /** | ||
36 | * A factory for resource access instances that caches the instance for some time. | ||
37 | * | ||
38 | * This avoids constantly recreating connections, and should allow a single process to have one connection per resource. | ||
39 | */ | ||
35 | class ResourceAccessFactory { | 40 | class ResourceAccessFactory { |
36 | public: | 41 | public: |
37 | static ResourceAccessFactory &instance() | 42 | static ResourceAccessFactory &instance() |