src/runtime/threads/executors/default_executor.cpp
void default_executor::add(closure_type&& f,
        util::thread_description const& desc,
        threads::thread_state_enum initial_state,
        bool run_now, threads::thread_stacksize stacksize, error_code& ec)
    {
        if (stacksize == threads::thread_stacksize_default)
            stacksize = stacksize_;

        register_thread_nullary(std::move(f), desc, initial_state, run_now,
            priority_, os_thread_, stacksize, ec);
    }
// Schedule the specified function for execution in this executor.
// Depending on the subclass implementation, this may block in some
// situations.
Schedule the specified function for execution in this executor.
Depending on the subclass implementation, this may block in some
situations.
Schedule the specified function for execution in this executor . Depending on the subclass implementation this may block in some situations .
void default_executor::add(closure_type&& f,
        util::thread_description const& desc,
        threads::thread_state_enum initial_state,
        bool run_now, threads::thread_stacksize stacksize, error_code& ec)
    {
        if (stacksize == threads::thread_stacksize_default)
            stacksize = stacksize_;
        register_thread_nullary(std::move(f), desc, initial_state, run_now,
            priority_, os_thread_, stacksize, ec);
    }
void default_executor :: add ( closure_type && f , util :: thread_description const & desc , threads :: thread_state_enum initial_state , bool run_now , threads :: thread_stacksize stacksize , error_code & ec ) { if ( stacksize == threads :: thread_stacksize_default ) stacksize = stacksize_ ; register_thread_nullary ( std :: move ( f ) , desc , initial_state , run_now , priority_ , os_thread_ , stacksize , ec ) ; }
Schedule the specified function for execution in this executor.
Schedule the specified function for execution in this executor .