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. |
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.
ops | A batch of op handles. |
future boost::afio::async_close | ( | future<> | _precondition | ) |
Asynchronous file or directory handle close after a preceding operation.
_precondition | The precondition to use. |
{Amortised O(1) to dispatch. Amortised O(1) to complete if closing handles is constant time.} {filedir_example}
void boost::afio::close | ( | future<> | _precondition | ) |
void boost::afio::close | ( | error_code & | _ec, |
future<> | _precondition | ||
) |
Synchronous file or directory handle close after a preceding operation.
_ec | Error code to set. |
_precondition | The precondition to use. |
{distinguish, non throwing} {Amortised O(1) to dispatch. Amortised O(1) to complete if closing handles is constant time.} {filedir_example}
January, 2014 |
Copyright © 2013-2014 Niall Douglas, Cork, Ireland Copyright © 2013 Paul Kirth, California |