1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright (C) 2019 Stephan Gerhold
6 #include <condition_variable>
17 struct GraphicsThread {
18 GraphicsThread(std::string name);
19 virtual ~GraphicsThread();
26 virtual void run() {};
27 virtual void work(std::unique_lock<std::mutex>& lock);
30 void loop(std::unique_lock<std::mutex>& lock, F f) {
47 std::condition_variable mCondition;
52 } // namespace composer
53 } // namespace graphics
54 } // namespace hardware
55 } // namespace android