Main docs: Home
Namespaces | |
namespace | pw::system |
Opinionated system framework. | |
Classes | |
class | pw::system::AsyncCore |
Functions | |
system::AsyncCore & | pw::System () |
void | pw::SystemStart (channel::ByteReaderWriter &io_channel) |
Allocator & | pw::system::AsyncCore::allocator () |
Returns the system pw::Allocator instance. | |
async2::Dispatcher & | pw::system::AsyncCore::dispatcher () |
Returns the system pw::async2::Dispatcher instance. | |
rpc::Server & | pw::system::AsyncCore::rpc_server () |
Returns the system pw::rpc::Server instance. | |
bool | pw::system::AsyncCore::RunOnce (Function< void()> &&function) |
Friends | |
AsyncCore & | pw::system::AsyncCore::pw::System () |
void | pw::system::AsyncCore::pw::SystemStart (channel::ByteReaderWriter &) |
bool pw::system::AsyncCore::RunOnce | ( | Function< void()> && | function | ) |
Runs a function once on a separate thread. If the function blocks, it may prevent other functions from running.
|
inline |
Returns a reference to the global pw_system instance. pw::System() provides several features for applications: a memory allocator, an async dispatcher, and a RPC server.
void pw::SystemStart | ( | channel::ByteReaderWriter & | io_channel | ) |
Starts running pw_system:async
with the provided IO channel. This function never returns.