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

Function sync_data

demo_example/asio/asio/basic_file.hpp:780–785  ·  view source on GitHub ↗

Synchronise the file data to disk. * This function synchronises the file data 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

778 * @throws asio::system_error Thrown on failure.
779 */
780 void sync_data()
781 {
782 asio::error_code ec;
783 impl_.get_service().sync_data(impl_.get_implementation(), ec);
784 asio::detail::throw_error(ec, "sync_data");
785 }
786
787 /// Synchronise the file data to disk.
788 /**

Callers 2

Calls 1

throw_errorFunction · 0.85

Tested by

no test coverage detected