Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
h
i
l
n
o
p
r
s
t
u
v
Variables
Typedefs
Enumerations
a
c
d
f
h
i
l
m
p
r
s
t
v
Enumerator
a
c
d
f
h
i
l
m
p
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Typedefs
Enumerations
Enumerator
b
c
d
e
f
i
m
n
q
r
s
x
Files
File List
File Members
All
f
o
r
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
crash_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 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/target_posix/roc_core/crash_handler.h
10
//! @brief Crash handling.
11
12
#ifndef ROC_CORE_CRASH_HANDLER_H_
13
#define ROC_CORE_CRASH_HANDLER_H_
14
15
#include <signal.h>
16
17
#include "
roc_core/noncopyable.h
"
18
19
namespace
roc
{
20
namespace
core {
21
22
//! Crash handler.
23
class
CrashHandler
:
public
core::NonCopyable
<> {
24
public
:
25
//! Install signal handlers.
26
CrashHandler
();
27
28
//! Restore signal handlers.
29
~CrashHandler
();
30
31
private
:
32
void
install_(
int
sig
);
33
void
uninstall_();
34
35
enum
{ MaxSigs = 8 };
36
37
struct
sigaction
sa_restore_[MaxSigs];
38
int
sig_restore_[MaxSigs];
39
size_t
restore_sz_;
40
};
23
class
CrashHandler
:
public
core::NonCopyable
<> {
…
};
41
42
}
// namespace core
43
}
// namespace roc
44
45
#endif
// ROC_CORE_CRASH_HANDLER_H_
roc::core::CrashHandler
Crash handler.
Definition
crash_handler.h:23
roc::core::CrashHandler::CrashHandler
CrashHandler()
Install signal handlers.
roc::core::CrashHandler::~CrashHandler
~CrashHandler()
Restore signal handlers.
roc::core::NonCopyable
Base class for non-copyable objects.
Definition
noncopyable.h:23
roc::core::SharedPtr
Shared ownership intrusive pointer.
Definition
shared_ptr.h:32
roc
Root namespace.
noncopyable.h
Non-copyable object.
roc_core
target_posix
roc_core
crash_handler.h
Generated by
1.9.8