hpx/executors/current_executor.hpp
hpx/executors/current_executor.hpp#
Defined in header hpx/executors/current_executor.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace hpx
-
namespace parallel
-
namespace execution
Typedefs
-
typedef hpx::execution::parallel_executor instead#
-
typedef hpx::execution::parallel_executor instead#
-
namespace execution
-
namespace this_thread#
Functions
-
hpx::execution::parallel_executor get_executor(error_code &ec = throws)#
Returns a reference to the executor that was used to create the current thread.
- Throws
If –
&ec != &throws
, never throws, but will set ec to an appropriate value when an error occurs. Otherwise, this function will throw an hpx::exception with an error code of hpx::error::yield_aborted if it is signaled with wait_aborted. If called outside of a HPX-thread, this function will throw an hpx::exception with an error code of hpx::error::null_thread_id. If this function is called while the thread-manager is not running, it will throw an hpx::exception with an error code of hpx::error::invalid_status.
-
hpx::execution::parallel_executor get_executor(error_code &ec = throws)#
-
namespace threads
Functions
-
hpx::execution::parallel_executor get_executor(thread_id_type const &id, error_code &ec = throws)#
Returns a reference to the executor that was used to create the given thread.
- Throws
If –
&ec != &throws
, never throws, but will set ec to an appropriate value when an error occurs. Otherwise, this function will throw an hpx::exception with an error code of hpx::error::yield_aborted if it is signaled with wait_aborted. If called outside of a HPX-thread, this function will throw an hpx::exception with an error code of hpx::error::null_thread_id. If this function is called while the thread-manager is not running, it will throw an hpx::exception with an error code of hpx::error::invalid_status.
-
hpx::execution::parallel_executor get_executor(thread_id_type const &id, error_code &ec = throws)#
-
namespace parallel