diff options
author | Chris Johns <chrisj@rtems.org> | 2020-10-08 19:12:20 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2020-10-09 10:46:25 +1100 |
commit | 6f2a219f573b05c869c14840625b6c1e86f9d718 (patch) | |
tree | 946bb7245747acc8c3150dd8dd1baabacc7d4fd5 /cpukit/librtemscxx/error.cpp | |
parent | bsps/include/bsp/fatal.h: Add GRLIB specific fatal error (diff) | |
download | rtems-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.cpp | 9 |
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); + } } }; |