MCPcopy Create free account
hub / github.com/alibaba/async_simple / sync_all

Function sync_all

demo_example/asio/asio/basic_file.hpp:753–758  ·  view source on GitHub ↗

Synchronise the file to disk. * This function synchronises the file data and metadata to disk. Note that * the semantics of this synchronisation vary between operation systems. * * @throws asio::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

751 * @throws asio::system_error Thrown on failure.
752 */
753 void sync_all()
754 {
755 asio::error_code ec;
756 impl_.get_service().sync_all(impl_.get_implementation(), ec);
757 asio::detail::throw_error(ec, "sync_all");
758 }
759
760 /// Synchronise the file to disk.
761 /**

Callers 2

Calls 1

throw_errorFunction · 0.85

Tested by

no test coverage detected