Skip to content

Commit

Permalink
Hygiene changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan511 committed Feb 8, 2024
1 parent 8d69f0c commit 8088e54
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 8088e54

Please sign in to comment.