/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2019, Google Inc. * * event_loop.cpp - cam - Event loop */ #include #include "event_loop.h" using namespace libcamera; EventLoop::EventLoop(EventDispatcher *dispatcher) : dispatcher_(dispatcher) { } EventLoop::~EventLoop() { } int EventLoop::exec() { exitCode_ = -1; exit_.store(false, std::memory_order_release); while (!exit_.load(std::memory_order_acquire)) dispatcher_->processEvents(); return exitCode_; } void EventLoop::exit(int code) { exitCode_ = code; exit_.store(true, std::memory_order_release); dispatcher_->interrupt(); } title='libcamera/libcamera.git' href='/libcamera/libcamera.git/'>libcamera/libcamera.git
libcamera official repositorygit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/thermometer.svg
blob: 33142ccccf18173d208e16ae90357049c1d6d3f2 (plain)
1