Dawn Framework 1.0
Universal data acquisition framework for embedded systems
shutdown.cxx
1// dawn/src/dev/shutdown.cxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#include "dawn/dev/shutdown.hxx"
7
8#include <atomic>
9
10using namespace dawn;
11
12namespace
13{
14std::atomic_bool g_shutdownRequested(false);
15}
16
18{
19 g_shutdownRequested = true;
20}
21
23{
24 g_shutdownRequested = false;
25}
26
28{
29 return g_shutdownRequested.load();
30}
static void clear()
Clear pending shutdown request.
Definition shutdown.cxx:22
static bool isRequested()
Check if shutdown has been requested.
Definition shutdown.cxx:27
static void request()
Request application shutdown.
Definition shutdown.cxx:17
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13