aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/main-thread-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests/main-thread-selftests.c')
-rw-r--r--gdb/unittests/main-thread-selftests.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/unittests/main-thread-selftests.c b/gdb/unittests/main-thread-selftests.c
index bdc1628..ee10247 100644
--- a/gdb/unittests/main-thread-selftests.c
+++ b/gdb/unittests/main-thread-selftests.c
@@ -27,8 +27,10 @@
#include <thread>
#endif
-namespace selftests {
-namespace main_thread_tests {
+namespace selftests
+{
+namespace main_thread_tests
+{
#if CXX_STD_THREAD
@@ -37,10 +39,7 @@ static bool done;
static void
set_done ()
{
- run_on_main_thread ([] ()
- {
- done = true;
- });
+ run_on_main_thread ([] () { done = true; });
}
static void
@@ -54,10 +53,10 @@ run_tests ()
gdb::block_signals blocker;
SCOPE_EXIT
- {
- if (thread.joinable ())
- thread.join ();
- };
+ {
+ if (thread.joinable ())
+ thread.join ();
+ };
thread = std::thread (set_done);
}
@@ -71,10 +70,11 @@ run_tests ()
#endif
-}
-}
+} // namespace main_thread_tests
+} // namespace selftests
void _initialize_main_thread_selftests ();
+
void
_initialize_main_thread_selftests ()
{