/* 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(); } >cgit logo index : libcamera/jmondi/libcamera.git
Jacopo Mondi's clone of libcameragit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/x-circle.svg
blob: 94aad5e5602f2c9f8c5029976dec7ea37a0d44bf (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-x-circle"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>