Skip to content

Commit

Permalink
Hygiene changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan511 committed Feb 7, 2024
1 parent d927e99 commit 5b00f49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ namespace hpx::synchronization {
range_guard& operator=(range_guard const&) = delete;

range_guard(range_guard&& rhs_lock)
: lock_id(rhs_lock.lock_id)
, mutex_ref(rhs_lock.mutex_ref)
{
mutex_ref = rhs_lock.mutex_ref;
lock_id = rhs_lock.lock_id;
rhs_lock.lock_id = 0;
}

Expand Down Expand Up @@ -81,9 +81,9 @@ namespace hpx::synchronization {
range_unique_lock& operator=(range_unique_lock const&) = delete;

range_unique_lock(range_unique_lock&& rhs_lock)
: mutex_ref(rhs_lock.mutex_ref)
, lock_id(rhs_lock.lock_id)
{
mutex_ref = rhs_lock.mutex_ref;
lock_id = rhs_lock.lock_id;
rhs_lock.lock_id = 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ int main()
hpx::synchronization::range_mutex rm;
hpx::synchronization::range_unique_lock<hpx::synchronization::range_mutex>
lg(rm, 1, 2);
lg.lock(3, 4);
hpx::ranged_lock::test::util::test_lock_n_times<
hpx::synchronization::range_mutex>(
10, 1'00'000, 4, 100,
Expand Down

0 comments on commit 5b00f49

Please sign in to comment.