Android-cuttlefish cvd tool
oemlock_responder.h
Go to the documentation of this file.
1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <mutex>
19
23
24namespace cuttlefish {
25namespace oemlock {
26
28 public:
30 std::timed_mutex& lock);
31
33
34 private:
37 std::timed_mutex& lock_;
38};
39
40} // namespace oemlock
41} // namespace cuttlefish
Definition: expected.h:86
Definition: oemlock_responder.h:27
std::timed_mutex & lock_
Definition: oemlock_responder.h:37
Result< void > ProcessMessage()
Definition: oemlock_responder.cpp:27
transport::Channel & channel_
Definition: oemlock_responder.h:35
OemLock & oemlock_
Definition: oemlock_responder.h:36
OemLockResponder(transport::Channel &channel, OemLock &oemlock, std::timed_mutex &lock)
Definition: oemlock_responder.cpp:23
Definition: oemlock.h:33
Definition: channel.h:67
Definition: alloc_utils.cpp:23