libs/core/runtime_configuration/src/runtime_configuration.cpp
std::ptrdiff_t runtime_configuration::init_stack_size(char const* entryname,
        char const* defaultvaluestr, std::ptrdiff_t defaultvalue) const
    {
        if (util::section const* sec = get_section("hpx.stacks");
            nullptr != sec)
        {
            std::string entry = sec->get_entry(entryname, defaultvaluestr);
            char* endptr = nullptr;
            std::ptrdiff_t val =
                std::strtoll(entry.c_str(), &endptr, /*base:*/ 0);
            return endptr != entry.c_str() ? val : defaultvalue;
        }
        return defaultvalue;
    }
// Will return the stack size to use for all HPX-threads.
Will return the stack size to use for all HPX-threads.
Will return the stack size to use for all HPX - threads .
std::ptrdiff_t runtime_configuration::init_stack_size(char const* entryname,
        char const* defaultvaluestr, std::ptrdiff_t defaultvalue) const
    {
        if (util::section const* sec = get_section("hpx.stacks");
            nullptr != sec)
        {
            std::string entry = sec->get_entry(entryname, defaultvaluestr);
            char* endptr = nullptr;
            std::ptrdiff_t val =
                std::strtoll(entry.c_str(), &endptr,  0);
            return endptr != entry.c_str() ? val : defaultvalue;
        }
        return defaultvalue;
    }
std :: ptrdiff_t runtime_configuration :: init_stack_size ( char const * entryname , char const * defaultvaluestr , std :: ptrdiff_t defaultvalue ) const { if ( util :: section const * sec = get_section ( " " ) ; nullptr != sec ) { std :: string entry = sec -> get_entry ( entryname , defaultvaluestr ) ; char * endptr = nullptr ; std :: ptrdiff_t val = std :: strtoll ( entry . c_str ( ) , & endptr , 0 ) ; return endptr != entry . c_str ( ) ? val : defaultvalue ; } return defaultvalue ; }
Will return the stack size to use for all HPX-threads.
Will return the stack size to use for all HPX - threads .
/*base:*/