Skip to content

Commit

Permalink
Fixing testing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Dec 2, 2023
1 parent 0f41e91 commit ac061bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ namespace hpx::parallel::util {
decltype(auto) adapt_thread_priority(
ExPolicy&& policy, hpx::threads::thread_priority new_priority)
{
constexpr bool supports_priority =
hpx::functional::is_tag_invocable_v<
hpx::execution::experimental::with_priority_t,
std::decay_t<ExPolicy>, hpx::threads::thread_priority>;
constexpr bool supports_priority = hpx::functional::is_tag_invocable_v<
hpx::execution::experimental::with_priority_t,
std::decay_t<ExPolicy>, hpx::threads::thread_priority>;

if constexpr (supports_priority)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace hpx::util {

// The following functions are used to store the held locks information
// during thread suspension. The data is stored on a thread_local basis,
// so we must make sure that locks the are being ignored are restored
// so we must make sure that locks that are being ignored are restored
// after suspension even if the thread is being resumed on a different core.

// retrieve the current thread_local data about held locks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

#include <hpx/config.hpp>
#include <hpx/concurrency/cache_line_data.hpp>
#include <hpx/memory/intrusive_ptr.hpp>
#include <hpx/lock_registration/detail/register_locks.hpp>
#include <hpx/modules/memory.hpp>
#include <hpx/synchronization/detail/condition_variable.hpp>
#include <hpx/synchronization/spinlock.hpp>
#include <hpx/thread_support/assert_owns_lock.hpp>
Expand Down Expand Up @@ -65,6 +66,7 @@ namespace hpx::detail {

void release_waiters(std::unique_lock<mutex_type>& lk)
{
[[maybe_unused]] util::ignore_while_checking il(&lk);
exclusive_cond.notify_one_no_unlock(lk);
shared_cond.notify_all(HPX_MOVE(lk));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <hpx/naming_base/id_type.hpp>
#include <hpx/synchronization/spinlock.hpp>

#include <atomic>
#include <cstddef>
#include <cstdint>
#include <memory>
Expand Down

0 comments on commit ac061bd

Please sign in to comment.