libs/full/runtime_distributed/src/runtime_distributed.cpp
bool runtime_distributed::register_thread(char const* name,
        std::size_t global_thread_num, bool service_thread, error_code& ec)
    {
        // prefix thread name with locality number, if needed
        std::string locality = locality_prefix(get_config());

        std::string thread_name(name);
        thread_name += "-thread";

        init_tss_ex(locality, thread_name.c_str(),
            runtime_local::os_thread_type::custom_thread, global_thread_num,
            global_thread_num, "", nullptr, service_thread, ec);

        return !ec ? true : false;
    }
/// Register an external OS-thread with HPX
Register an external OS-thread with HPX
Register an external OS - thread with HPX
bool runtime_distributed::register_thread(char const* name,
        std::size_t global_thread_num, bool service_thread, error_code& ec)
    {
        std::string locality = locality_prefix(get_config());
        std::string thread_name(name);
        thread_name += "-thread";
        init_tss_ex(locality, thread_name.c_str(),
            runtime_local::os_thread_type::custom_thread, global_thread_num,
            global_thread_num, "", nullptr, service_thread, ec);
        return !ec ? true : false;
    }
bool runtime_distributed :: register_thread ( char const * name , std :: size_t global_thread_num , bool service_thread , error_code & ec ) { std :: string locality = locality_prefix ( get_config ( ) ) ; std :: string thread_name ( name ) ; thread_name += " " ; init_tss_ex ( locality , thread_name . c_str ( ) , runtime_local :: os_thread_type :: custom_thread , global_thread_num , global_thread_num , " " , nullptr , service_thread , ec ) ; return ! ec ? true : false ; }
Register an external OS-thread with HPX
Register an external OS - thread with HPX
// prefix thread name with locality number, if needed