|
alien::instance & | alien () |
|
void | handle_signal (int signo, noncopyable_function< void()> &&handler) |
| Register a user-defined signal handler.
|
|
void | wakeup () |
|
| reactor (std::shared_ptr< smp > smp, alien::instance &alien, unsigned id, reactor_backend_selector rbs, reactor_config cfg) |
|
| reactor (const reactor &)=delete |
|
void | operator= (const reactor &)=delete |
|
sched_clock::duration | uptime () |
|
io_queue & | get_io_queue (dev_t devid=0) |
|
server_socket | listen (socket_address sa, listen_options opts={}) |
|
future< connected_socket > | connect (socket_address sa) |
|
future< connected_socket > | connect (socket_address, socket_address, transport proto=transport::TCP) |
|
pollable_fd | posix_listen (socket_address sa, listen_options opts={}) |
|
bool | posix_reuseport_available () const |
|
pollable_fd | make_pollable_fd (socket_address sa, int proto) |
|
future | posix_connect (pollable_fd pfd, socket_address sa, socket_address local) |
|
future | send_all (pollable_fd_state &fd, const void *buffer, size_t size) |
|
future< file > | open_file_dma (std::string_view name, open_flags flags, file_open_options options={}) noexcept |
|
future< file > | open_directory (std::string_view name) noexcept |
|
future | make_directory (std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept |
|
future | touch_directory (std::string_view name, file_permissions permissions=file_permissions::default_dir_permissions) noexcept |
|
future< std::optional< directory_entry_type > > | file_type (std::string_view name, follow_symlink=follow_symlink::yes) noexcept |
|
future< stat_data > | file_stat (std::string_view pathname, follow_symlink) noexcept |
|
future | chown (std::string_view filepath, uid_t owner, gid_t group) |
|
future< std::optional< struct group_details > > | getgrnam (std::string_view name) |
|
future< uint64_t > | file_size (std::string_view pathname) noexcept |
|
future< bool > | file_accessible (std::string_view pathname, access_flags flags) noexcept |
|
future< bool > | file_exists (std::string_view pathname) noexcept |
|
future< fs_type > | file_system_at (std::string_view pathname) noexcept |
|
future< std::filesystem::space_info > | file_system_space (std::string_view pathname) noexcept |
|
future< struct statvfs > | statvfs (std::string_view pathname) noexcept |
|
future | remove_file (std::string_view pathname) noexcept |
|
future | rename_file (std::string_view old_pathname, std::string_view new_pathname) noexcept |
|
future | link_file (std::string_view oldpath, std::string_view newpath) noexcept |
|
future | chmod (std::string_view name, file_permissions permissions) noexcept |
|
future< size_t > | read_directory (int fd, char *buffer, size_t buffer_size) |
|
future< int > | inotify_add_watch (int fd, std::string_view path, uint32_t flags) |
|
future< std::tuple< file_desc, file_desc > > | make_pipe () |
|
future< std::tuple< pid_t, file_desc, file_desc, file_desc > > | spawn (std::string_view pathname, std::vector< sstring > argv, std::vector< sstring > env={}) |
|
future< int > | waitpid (pid_t pid) |
|
void | kill (pid_t pid, int sig) |
|
int | run () noexcept |
|
void | exit (int ret) |
|
future | when_started () |
|
template<typename Rep , typename Period > |
future | wait_for_stop (std::chrono::duration< Rep, Period > timeout) |
|
void | at_exit (noncopyable_function< future<>()> func) |
|
template<typename Func > |
void | at_destroy (Func &&func) |
|
task * | current_task () const |
|
void | set_current_task (task *t) |
|
void | add_task (task *t) noexcept |
|
void | add_urgent_task (task *t) noexcept |
|
void | run_in_background (future<> f) |
|
template<typename Func > |
void | run_in_background (Func &&func) |
|
void | set_idle_cpu_handler (idle_cpu_handler &&handler) |
|
void | force_poll () |
|
void | add_high_priority_task (task *) noexcept |
|
network_stack & | net () |
|
shard_id | cpu_id () const |
|
void | try_sleep () |
|
steady_clock_type::duration | total_idle_time () |
|
steady_clock_type::duration | total_busy_time () |
|
steady_clock_type::duration | total_awake_time () const |
|
std::chrono::nanoseconds | total_cpu_time () const |
|
std::chrono::nanoseconds | total_steal_time () |
|
const io_stats & | get_io_stats () const |
|
sched_stats | get_sched_stats () const |
|
uint64_t | abandoned_failed_futures () const |
|
future | readable (pollable_fd_state &fd) |
|
future | writeable (pollable_fd_state &fd) |
|
future | readable_or_writeable (pollable_fd_state &fd) |
|
future | poll_rdhup (pollable_fd_state &fd) |
|
void | enable_timer (steady_clock_type::time_point when) noexcept |
|
void | set_strict_dma (bool value) |
|
void | set_bypass_fsync (bool value) |
|
void | update_blocked_reactor_notify_ms (std::chrono::milliseconds ms) |
|
std::chrono::milliseconds | get_blocked_reactor_notify_ms () const |
|