/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * event_loop.h - cam - Event loop */ #ifndef __CAM_EVENT_LOOP_H__ #define __CAM_EVENT_LOOP_H__ #include #include namespace libcamera { class EventDispatcher; } class EventLoop { public: EventLoop(libcamera::EventDispatcher *dispatcher); ~EventLoop(); int exec(); void exit(int code = 0); private: libcamera::EventDispatcher *dispatcher_; std::atomic exit_; int exitCode_; }; #endif /* __CAM_EVENT_LOOP_H__ */
summaryrefslogtreecommitdiff
blob: f8886eca8e6e4e3b6efdd4a11957528ea2e0f4cd (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-twitter"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>