Loading [MathJax]/extensions/tex2jax.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace 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
y
z
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
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-423-gda6ede93c83 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
▼
BaseLib
►
IO
►
Algorithm.h
►
BoostMP11Utils.h
►
CompilerWorkarounds.h
ConfigTree-fwd.h
►
ConfigTree-impl.h
►
ConfigTree.cpp
►
ConfigTree.h
►
ConfigTreeUtil.cpp
►
ConfigTreeUtil.h
►
ContainerTools.h
►
cpp23.h
►
CPUTime.h
►
DateTools.cpp
►
DateTools.h
►
DisableFPE.h
►
Error.h
►
ExportSymbol.h
►
FileTools.cpp
►
FileTools.h
►
Histogram.cpp
►
Histogram.h
►
Logging.cpp
►
Logging.h
MemWatch.cpp
►
MemWatch.h
►
MPI.h
►
PrjProcessing.cpp
►
PrjProcessing.h
►
quicksort.h
►
RunTime.h
►
StringTools.cpp
►
StringTools.h
►
StrongType.h
Subdivision.cpp
►
Subdivision.h
►
ThreadException.h
►
TimeInterval.cpp
►
TimeInterval.h
►
TMP.h
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
ThreadException.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include <exception>
13
#include <mutex>
14
22
class
ThreadException
23
{
24
public
:
25
void
capture
()
26
{
27
std::unique_lock<std::mutex> guard{
lock_
};
28
exception_
= std::current_exception();
29
}
25
void
capture
() {
…
}
30
31
void
rethrow
()
32
{
33
if
(
exception_
)
34
{
35
std::rethrow_exception(
exception_
);
36
}
37
}
31
void
rethrow
() {
…
}
38
39
explicit
operator
bool() const noexcept {
return
exception_
!=
nullptr
; }
40
41
private
:
42
std::exception_ptr
exception_
=
nullptr
;
43
std::mutex
lock_
;
44
};
22
class
ThreadException
{
…
};
ThreadException
Definition
ThreadException.h:23
ThreadException::rethrow
void rethrow()
Definition
ThreadException.h:31
ThreadException::exception_
std::exception_ptr exception_
Definition
ThreadException.h:42
ThreadException::lock_
std::mutex lock_
Definition
ThreadException.h:43
ThreadException::capture
void capture()
Definition
ThreadException.h:25
BaseLib
ThreadException.h
Generated by
1.12.0