|
static boost::program_options::options_description | get_options_description () |
|
static void | register_network_stacks () |
|
static void | configure (boost::program_options::variables_map vm, reactor_config cfg={}) |
|
static void | cleanup () |
|
static void | cleanup_cpu () |
|
static void | arrive_at_event_loop_end () |
|
static void | join_all () |
|
static bool | main_thread () |
|
template<typename Func > |
static futurize_t< std::result_of_t< Func()> > | submit_to (unsigned t, smp_submit_to_options options, Func &&func) noexcept |
|
template<typename Func > |
static futurize_t< std::result_of_t< Func()> > | submit_to (unsigned t, Func &&func) noexcept |
|
static bool | poll_queues () |
|
static bool | pure_poll_queues () |
|
static boost::integer_range< unsigned > | all_cpus () noexcept |
|
template<typename Func > |
static future | invoke_on_all (smp_submit_to_options options, Func &&func) noexcept |
|
template<typename Func > |
static future | invoke_on_all (Func &&func) noexcept |
|
template<typename Func > |
static future | invoke_on_others (unsigned cpu_id, smp_submit_to_options options, Func func) noexcept |
|
template<typename Func > |
static future | invoke_on_others (unsigned cpu_id, Func func) noexcept |
|
◆ invoke_on_all() [1/2]
template<typename Func >
static future seastar::smp::invoke_on_all |
( |
Func && |
func | ) |
|
|
inlinestaticnoexcept |
Invokes func on all shards.
- Parameters
-
func | the function to be invoked on each shard. May return void or future<>. Each async invocation will work with a separate copy of func . |
- Returns
- a future that resolves when all async invocations finish.
Passes the default smp_submit_to_options to the smp::submit_to() called behind the scenes.
◆ invoke_on_all() [2/2]
Invokes func on all shards.
- Parameters
-
options | the options to forward to the smp::submit_to() called behind the scenes. |
func | the function to be invoked on each shard. May return void or future<>. Each async invocation will work with a separate copy of func . |
- Returns
- a future that resolves when all async invocations finish.
◆ invoke_on_others() [1/2]
template<typename Func >
static future seastar::smp::invoke_on_others |
( |
unsigned |
cpu_id, |
|
|
Func |
func |
|
) |
| |
|
inlinestaticnoexcept |
Invokes func on all other shards.
- Parameters
-
cpu_id | the cpu on which not to run the function. |
func | the function to be invoked on each shard. May return void or future<>. Each async invocation will work with a separate copy of func . |
- Returns
- a future that resolves when all async invocations finish.
Passes the default smp_submit_to_options to the smp::submit_to() called behind the scenes.
◆ invoke_on_others() [2/2]
Invokes func on all other shards.
- Parameters
-
cpu_id | the cpu on which not to run the function. |
options | the options to forward to the smp::submit_to() called behind the scenes. |
func | the function to be invoked on each shard. May return void or future<>. Each async invocation will work with a separate copy of func . |
- Returns
- a future that resolves when all async invocations finish.
◆ submit_to() [1/2]
template<typename Func >
static futurize_t<std::result_of_t<Func()> > seastar::smp::submit_to |
( |
unsigned |
t, |
|
|
Func && |
func |
|
) |
| |
|
inlinestaticnoexcept |
Runs a function on a remote core.
Uses default_smp_service_group() to control resource allocation.
- Parameters
-
t | designates the core to run the function on (may be a remote core or the local core). |
func | a callable to run on core t . If func is a temporary object, its lifetime will be extended by moving. This movement and the eventual destruction of func are both done in the calling core. If func is a reference, the caller must guarantee that it will survive the call. |
- Returns
- whatever
func
returns, as a future<> (if func
does not return a future, submit_to() will wrap it in a future<>).
◆ submit_to() [2/2]
template<typename Func >
static futurize_t<std::result_of_t<Func()> > seastar::smp::submit_to |
( |
unsigned |
t, |
|
|
smp_submit_to_options |
options, |
|
|
Func && |
func |
|
) |
| |
|
inlinestaticnoexcept |
Runs a function on a remote core.
- Parameters
-
t | designates the core to run the function on (may be a remote core or the local core). |
options | an smp_submit_to_options that contains options for this call. |
func | a callable to run on core t . If func is a temporary object, its lifetime will be extended by moving. This movement and the eventual destruction of func are both done in the calling core. If func is a reference, the caller must guarantee that it will survive the call. |
- Returns
- whatever
func
returns, as a future<> (if func
does not return a future, submit_to() will wrap it in a future<>).
The documentation for this class was generated from the following file: