Boost.AFIO    Boost C++ Libraries
Functions
Closing files

Functions

virtual std::vector< future<> > boost::afio::dispatcher::close (const std::vector< future<>> &ops)=0
 Schedule a batch of asynchronous file or directory handle closes after preceding operations.
future boost::afio::async_close (future<> _precondition)
 Asynchronous file or directory handle close after a preceding operation.
void boost::afio::close (future<> _precondition)
 Synchronous file or directory handle close after a preceding operation.
void boost::afio::close (error_code &_ec, future<> _precondition)
 Synchronous file or directory handle close after a preceding operation.

Function Documentation

future boost::afio::dispatcher::close ( const std::vector< future<>> &  ops) [pure virtual]

Schedule a batch of asynchronous file or directory handle closes after preceding operations.

Note this is ignored for handles where available_to_directory_cache() is true as those cannot be explicitly closed. Note that failure to explicitly schedule closing a file handle using this call means it will be [*synchronously] closed on last reference count by `__afio_handle__`. This can consume considerable time, especially if SyncOnClose is enabled.

Returns:
A batch of op handles.
Parameters:
opsA batch of op handles.

Definition at line 3672 of file afio.hpp.

future boost::afio::async_close ( future<>  _precondition)

Asynchronous file or directory handle close after a preceding operation.

Returns:
A future<void>
Parameters:
_preconditionThe precondition to use.

{Amortised O(1) to dispatch. Amortised O(1) to complete if closing handles is constant time.} {filedir_example}

Definition at line 4975 of file afio.hpp.

void boost::afio::close ( future<>  _precondition)

Synchronous file or directory handle close after a preceding operation.

Parameters:
_preconditionThe precondition to use.

{distinguish, throwing} {Amortised O(1) to dispatch. Amortised O(1) to complete if closing handles is constant time.} {filedir_example}

Definition at line 4990 of file afio.hpp.

void boost::afio::close ( error_code &  _ec,
future<>  _precondition 
)

Synchronous file or directory handle close after a preceding operation.

Parameters:
_ecError code to set.
_preconditionThe precondition to use.

{distinguish, non throwing} {Amortised O(1) to dispatch. Amortised O(1) to complete if closing handles is constant time.} {filedir_example}

Definition at line 5006 of file afio.hpp.


January, 2014

Copyright © 2013-2014 Niall Douglas, Cork, Ireland
Copyright © 2013 Paul Kirth, California
Documentation is generated by Doxygen