@@ -441,7 +441,7 @@ namespace hpx::this_thread {
441441 threads::thread_self& self = threads::get_self ();
442442
443443 // keep alive
444- threads::thread_id_ref_type id = self.get_outer_thread_id ();
444+ threads::thread_id_ref_type const id = self.get_outer_thread_id ();
445445
446446 // handle interruption, if needed
447447 threads::interruption_point (id.noref (), ec);
@@ -451,16 +451,16 @@ namespace hpx::this_thread {
451451 threads::thread_restart_state statex;
452452
453453 {
454- // verify that there are no more registered locks for this OS-thread
455454#ifdef HPX_HAVE_VERIFY_LOCKS
455+ // verify that there are no more registered locks for this OS-thread
456456 util::verify_no_locks ();
457457#endif
458458#ifdef HPX_HAVE_THREAD_DESCRIPTION
459459 threads::detail::reset_lco_description desc (
460460 id.noref (), description, ec);
461461#endif
462462#ifdef HPX_HAVE_THREAD_BACKTRACE_ON_SUSPENSION
463- threads::detail::reset_backtrace bt (id, ec);
463+ threads::detail::reset_backtrace bt (id. noref () , ec);
464464#endif
465465 // We might need to dispatch 'nextid' to it's correct scheduler only
466466 // if our current scheduler is the same, we should yield to the id
@@ -512,7 +512,7 @@ namespace hpx::this_thread {
512512 threads::thread_self& self = threads::get_self ();
513513
514514 // keep alive
515- threads::thread_id_ref_type id = self.get_outer_thread_id ();
515+ threads::thread_id_ref_type const id = self.get_outer_thread_id ();
516516
517517 // handle interruption, if needed
518518 threads::interruption_point (id.noref (), ec);
@@ -532,7 +532,7 @@ namespace hpx::this_thread {
532532 id.noref (), description, ec);
533533#endif
534534#ifdef HPX_HAVE_THREAD_BACKTRACE_ON_SUSPENSION
535- threads::detail::reset_backtrace bt (id, ec);
535+ threads::detail::reset_backtrace bt (id. noref () , ec);
536536#endif
537537 std::atomic<bool > timer_started (false );
538538 threads::thread_id_ref_type const timer_id =
0 commit comments