summaryrefslogtreecommitdiffstats
path: root/cpukit/librtemscxx/error.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-10-08 19:12:20 +1100
committerChris Johns <chrisj@rtems.org>2020-10-09 10:46:25 +1100
commit6f2a219f573b05c869c14840625b6c1e86f9d718 (patch)
tree946bb7245747acc8c3150dd8dd1baabacc7d4fd5 /cpukit/librtemscxx/error.cpp
parentbsps/include/bsp/fatal.h: Add GRLIB specific fatal error (diff)
downloadrtems-6f2a219f573b05c869c14840625b6c1e86f9d718.tar.bz2
librtemscxx: Add join() and detach() to the thread
- Do not start threads detached
Diffstat (limited to 'cpukit/librtemscxx/error.cpp')
-rw-r--r--cpukit/librtemscxx/error.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/librtemscxx/error.cpp b/cpukit/librtemscxx/error.cpp
index ba46a8c2a5..8723856ac9 100644
--- a/cpukit/librtemscxx/error.cpp
+++ b/cpukit/librtemscxx/error.cpp
@@ -56,21 +56,24 @@ namespace rtems
void
runtime_error_check (const rtems_status_code sc)
{
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL) {
throw runtime_error (sc);
+ }
}
void
runtime_error_check (const rtems_status_code sc, const std::string& what)
{
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL) {
throw runtime_error (sc, what);
+ }
}
void
runtime_error_check (const rtems_status_code sc, const char* what)
{
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL) {
throw runtime_error (sc, what);
+ }
}
};