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) |
| void | pw::system::StartAndClobberTheStack (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::system::StartAndClobberTheStack (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.
| void pw::system::StartAndClobberTheStack | ( | channel::ByteReaderWriter & | io_channel | ) |
Starts running pw_system:async with the provided IO channel. This function never returns, and depending on the backend it may completely clobber the callers stack so that the scheduled threads can use all of that memory.
|
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, and depending on the backend it may completely clobber the callers stack so that the scheduled threads can use all of that memory.