Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Loading...
Searching...
No Matches
AsyncReplyGetter.h
1/*
2* If not stated otherwise in this file or this component's LICENSE file the
3* following copyright and licenses apply:
4*
5* Copyright 2020 Sky UK
6*
7* Licensed under the Apache License, Version 2.0 (the "License");
8* you may not use this file except in compliance with the License.
9* You may obtain a copy of the License at
10*
11* http://www.apache.org/licenses/LICENSE-2.0
12*
13* Unless required by applicable law or agreed to in writing, software
14* distributed under the License is distributed on an "AS IS" BASIS,
15* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16* See the License for the specific language governing permissions and
17* limitations under the License.
18*/
19/*
20 * AsyncReplyGetter.h
21 *
22 * Created on: 9 Jun 2015
23 * Author: riyadh
24 */
25
26#ifndef AI_IPC_ASYNCREPLYGETTER_H
27#define AI_IPC_ASYNCREPLYGETTER_H
28
29#include "IpcCommon.h"
30
31#include <memory>
32#include <atomic>
33
34namespace AI_IPC
35{
36
37class DbusConnection;
38
40{
41public:
42
43 AsyncReplyGetter(const std::weak_ptr<DbusConnection>& dbusConnection, uint64_t token);
44
46
47 virtual bool getReply(VariantList& argList) override;
48
49private:
50
51 const std::weak_ptr<DbusConnection> mDbusConnection;
52
53 std::atomic<uint64_t> mReplyToken;
54
55};
56
57}
58
59#endif /* AI_IPC_ASYNCREPLYGETTER_H */
Definition AsyncReplyGetter.h:40
virtual bool getReply(VariantList &argList) override
Get reply.
Definition AsyncReplyGetter.cpp:71
Helper class to get reply.
Definition IpcCommon.h:151