diff --git a/cpp/include/kvikio/defaults.hpp b/cpp/include/kvikio/defaults.hpp index b8ded16af8..4334549d23 100644 --- a/cpp/include/kvikio/defaults.hpp +++ b/cpp/include/kvikio/defaults.hpp @@ -63,7 +63,7 @@ std::vector getenv_or(std::string_view env_var_name, std::vector defau */ class defaults { private: - BS::thread_pool _thread_pool{get_num_threads_from_env()}; + BS_thread_pool _thread_pool{get_num_threads_from_env()}; CompatMode _compat_mode; std::size_t _task_size; std::size_t _gds_threshold; @@ -161,7 +161,7 @@ class defaults { * * @return The default thread pool instance. */ - [[nodiscard]] static BS::thread_pool& thread_pool(); + [[nodiscard]] static BS_thread_pool& thread_pool(); /** * @brief Get the number of threads in the default thread pool. diff --git a/cpp/include/kvikio/parallel_operation.hpp b/cpp/include/kvikio/parallel_operation.hpp index 7156575f99..f87e26bc1a 100644 --- a/cpp/include/kvikio/parallel_operation.hpp +++ b/cpp/include/kvikio/parallel_operation.hpp @@ -113,7 +113,7 @@ template std::future submit_move_only_task( F op_move_only, std::uint64_t nvtx_payload = 0ull, - nvtx_color_type nvtx_color = nvtx_manager::default_color()) + nvtx_color_type nvtx_color = NvtxManager::default_color()) { static_assert(std::is_invocable_r_v); auto op_copyable = make_copyable_lambda(std::move(op_move_only)); diff --git a/cpp/include/kvikio/utils.hpp b/cpp/include/kvikio/utils.hpp index 4f4d390e9d..55bcddf55d 100644 --- a/cpp/include/kvikio/utils.hpp +++ b/cpp/include/kvikio/utils.hpp @@ -15,7 +15,6 @@ */ #pragma once -#include #include #include #include diff --git a/cpp/src/defaults.cpp b/cpp/src/defaults.cpp index 8c6df78637..e0a908cf4d 100644 --- a/cpp/src/defaults.cpp +++ b/cpp/src/defaults.cpp @@ -165,7 +165,7 @@ bool defaults::is_compat_mode_preferred(CompatMode compat_mode) noexcept bool defaults::is_compat_mode_preferred() { return is_compat_mode_preferred(compat_mode()); } -BS::thread_pool& defaults::thread_pool() { return instance()->_thread_pool; } +BS_thread_pool& defaults::thread_pool() { return instance()->_thread_pool; } unsigned int defaults::thread_pool_nthreads() { return thread_pool().get_thread_count(); }