Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
global_destructor.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Roc Streaming authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_core/global_destructor.h
10
//! @brief Global destructor.
11
12
#ifndef ROC_CORE_GLOBAL_DESTRUCTOR_H_
13
#define ROC_CORE_GLOBAL_DESTRUCTOR_H_
14
15
namespace
roc
{
16
namespace
core {
17
18
//! Allows to determine if global library destruction was initiated.
19
class
GlobalDestructor
{
20
public
:
21
~
GlobalDestructor
();
22
23
//! Check if global library destruction was initiated.
24
static
bool
is_destroying
();
25
};
26
27
}
// namespace core
28
}
// namespace roc
29
30
#endif
// ROC_CORE_GLOBAL_DESTRUCTOR_H_
roc::core::GlobalDestructor
Allows to determine if global library destruction was initiated.
Definition:
global_destructor.h:19
roc::core::GlobalDestructor::is_destroying
static bool is_destroying()
Check if global library destruction was initiated.
roc
Root namespace.
roc_core
global_destructor.h
Generated by
1.9.1