Home
last modified time | relevance | path

Searched refs:AsyncAPI (Results 1 – 3 of 3) sorted by relevance

/third_party/boost/libs/fiber/examples/
Dadapt_callbacks.cpp54 class AsyncAPI { class
57 AsyncAPI();
85 AsyncAPI::AsyncAPI() : in AsyncAPI() function in AsyncAPI
89 void AsyncAPI::inject_error( errorcode ec) { in inject_error()
94 void AsyncAPI::init_write( std::string const& data, Fn && callback) { in init_write()
119 void AsyncAPI::init_read( Fn && callback) { in init_read()
145 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode);
148 AsyncAPI::errorcode write_ec( AsyncAPI & api, std::string const& data) { in write_ec()
149 boost::fibers::promise< AsyncAPI::errorcode > promise; in write_ec()
150 boost::fibers::future< AsyncAPI::errorcode > future( promise.get_future() ); in write_ec()
[all …]
Dadapt_method_calls.cpp39 class AsyncAPI: public AsyncAPIBase { class
42 AsyncAPI( std::string const& data);
61 AsyncAPI::AsyncAPI( std::string const& data) : in AsyncAPI() function in AsyncAPI
66 void AsyncAPI::inject_error( errorcode ec) { in inject_error()
70 void AsyncAPI::init_read( Response::ptr response) { in init_read()
95 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode);
122 std::string read( AsyncAPI & api) { in read()
137 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode ec) { in make_exception()
148 AsyncAPI api("abcd"); in main()
/third_party/boost/libs/fiber/doc/
Dcallbacks.qbk26 [AsyncAPI]
30 * The `AsyncAPI` method only initiates the operation. It returns immediately,
44 The `AsyncAPI::init_write()` callback passes only an `errorcode`. If we simply
60 dummy `AsyncAPI` implementation illustrates that: it simulates async I/O by
118 Now the `AsyncAPI` operation might look more like this:
146 hypothetical `AsyncAPI` asynchronous operations.