Skip to content

Commit

Permalink
added basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan511 committed Nov 1, 2023
1 parent eb449d2 commit 486a0be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/core/synchronization/tests/unit/range_lock.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <hpx/hpx_main.hpp>
#include <hpx/synchronization/mutex.hpp>
#include <hpx/synchronization/range_lock.hpp>

int main()
{
hpx::synchronization::ByteLock<hpx::mutex, std::lock_guard> bl;
std::size_t x = bl.lock(0, 10);
bl.unlock(x);
}

0 comments on commit 486a0be

Please sign in to comment.