diff --git a/libs/coroutines/src/detail/coroutine_impl.cpp b/libs/coroutines/src/detail/coroutine_impl.cpp index 51c03a4aec23..95f75b848ef1 100644 --- a/libs/coroutines/src/detail/coroutine_impl.cpp +++ b/libs/coroutines/src/detail/coroutine_impl.cpp @@ -34,7 +34,6 @@ #include #include #include -#include #include #include diff --git a/libs/coroutines/src/detail/tss.cpp b/libs/coroutines/src/detail/tss.cpp index 0f968bca5c61..5a1417e2fb43 100644 --- a/libs/coroutines/src/detail/tss.cpp +++ b/libs/coroutines/src/detail/tss.cpp @@ -16,8 +16,6 @@ #include #include -#include - #include #include #include @@ -60,7 +58,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail { std::size_t get_tss_thread_data(tss_storage* storage) { #ifdef HPX_HAVE_THREAD_LOCAL_STORAGE - hpx::threads::thread_self* self = hpx::threads::get_self_ptr(); + coroutine_self* self = coroutine_self::get_self(); if (nullptr == self) { HPX_THROW_EXCEPTION(null_thread_id, @@ -89,7 +87,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail { std::size_t set_tss_thread_data(tss_storage* storage, std::size_t data) { #ifdef HPX_HAVE_THREAD_LOCAL_STORAGE - hpx::threads::thread_self* self = hpx::threads::get_self_ptr(); + coroutine_self* self = coroutine_self::get_self(); if (nullptr == self) { HPX_THROW_EXCEPTION(null_thread_id, @@ -128,7 +126,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail { tss_data_node* find_tss_data(void const* key) { #ifdef HPX_HAVE_THREAD_LOCAL_STORAGE - hpx::threads::thread_self* self = hpx::threads::get_self_ptr(); + coroutine_self* self = coroutine_self::get_self(); if (nullptr == self) { HPX_THROW_EXCEPTION(null_thread_id, @@ -163,7 +161,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail { std::shared_ptr const& func, void* tss_data) { #ifdef HPX_HAVE_THREAD_LOCAL_STORAGE - hpx::threads::thread_self* self = hpx::threads::get_self_ptr(); + coroutine_self* self = coroutine_self::get_self(); if (nullptr == self) { HPX_THROW_EXCEPTION(null_thread_id, @@ -186,7 +184,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail { void erase_tss_node(void const* key, bool cleanup_existing) { #ifdef HPX_HAVE_THREAD_LOCAL_STORAGE - hpx::threads::thread_self* self = hpx::threads::get_self_ptr(); + coroutine_self* self = coroutine_self::get_self(); if (nullptr == self) { HPX_THROW_EXCEPTION(null_thread_id,