|
| | thread_pool_file_service (asio::io_service &io_service, std::size_t num_threads=1) |
| |
| void | shutdown_service () |
| | Destroy all user-defined handler objects owned by the service. More...
|
| |
| void | construct (implementation_type &impl) |
| | Construct a new file implementation. More...
|
| |
| void | move_construct (implementation_type &impl, implementation_type &other_impl) noexcept |
| | Move-construct a new file implementation. More...
|
| |
| void | move_assign (implementation_type &impl, thread_pool_file_service &other_service, implementation_type &other_impl) |
| | Move-assign from another file implementation. More...
|
| |
| void | destroy (implementation_type &impl) |
| | Destroy a file implementation. More...
|
| |
| void | open (implementation_type &impl, const char *filename, open_flags flags, file_perms perms, file_attrs attrs, error_code &ec) noexcept |
| | Open a handle to the given file. More...
|
| |
| void | open (implementation_type &impl, const wchar_t *filename, open_flags flags, file_perms perms, file_attrs attrs, error_code &ec) noexcept |
| | Open a handle to the given file. More...
|
| |
| void | open (implementation_type &impl, const boost::filesystem::path &filename, open_flags flags, file_perms perms, file_attrs attrs, error_code &ec) noexcept |
| | Open a handle to the given file. More...
|
| |
| void | assign (implementation_type &impl, const native_handle_type &handle, error_code &ec) noexcept |
| | Assign a native handle to a file implementation. More...
|
| |
| bool | is_open (const implementation_type &impl) const noexcept |
| | Determine whether the file handle is open. More...
|
| |
| void | close (implementation_type &impl, error_code &ec) noexcept |
| | Destroy a file implementation. More...
|
| |
| native_handle_type | native_handle (implementation_type &impl) noexcept |
| | Get the native file handle representation. More...
|
| |
| uint64_t | position (implementation_type &impl, error_code &ec) noexcept |
| | Get the current file pointer position. More...
|
| |
| uint64_t | seek (implementation_type &impl, seek_origin origin, int64_t offset, error_code &ec) noexcept |
| | Change the current file pointer position. More...
|
| |
| uint64_t | size (implementation_type &impl, error_code &ec) noexcept |
| | Get the file size. More...
|
| |
| void | size (implementation_type &impl, uint64_t new_size, error_code &ec) noexcept |
| | Set the file size. More...
|
| |
| file_perms | permissions (implementation_type &impl, error_code &ec) noexcept |
| | Get the file permissions. More...
|
| |
| void | permissions (implementation_type &impl, file_perms new_perms, error_code &ec) noexcept |
| | Set the file permissions. More...
|
| |
| void | permissions (implementation_type &impl, file_perms new_perms, file_perm_options opts, error_code &ec) noexcept |
| | Set the file permissions. More...
|
| |
| file_attrs | attributes (implementation_type &impl, error_code &ec) noexcept |
| | Get the file attributes. More...
|
| |
| void | attributes (implementation_type &impl, file_attrs new_attrs, error_code &ec) noexcept |
| | Set the file attributes. More...
|
| |
| void | attributes (implementation_type &impl, file_attrs new_attrs, file_attr_options opts, error_code &ec) noexcept |
| | Set the file attributes. More...
|
| |
| file_times | times (implementation_type &impl, error_code &ec) noexcept |
| | Get the file times. More...
|
| |
| void | times (implementation_type &impl, const file_times &new_times, error_code &ec) noexcept |
| | Set the file times. More...
|
| |
| void | cancel (implementation_type &impl, error_code &ec) noexcept |
| | Cancel all operations associated with the handle. More...
|
| |
| template<typename MutableBufferSequence > |
| size_t | read_some (implementation_type &impl, const MutableBufferSequence &buffers, error_code &ec) noexcept |
| | Read some data. Returns the number of bytes received. More...
|
| |
| template<typename ConstBufferSequence > |
| size_t | write_some (implementation_type &impl, const ConstBufferSequence &buffers, error_code &ec) noexcept |
| | Write the given data. Returns the number of bytes written. More...
|
| |
| template<typename MutableBufferSequence > |
| size_t | read_some_at (implementation_type &impl, uint64_t offset, const MutableBufferSequence &buffers, error_code &ec) noexcept |
| | Read some data at a specified offset. Returns the number of bytes received. More...
|
| |
| template<typename ConstBufferSequence > |
| size_t | write_some_at (implementation_type &impl, uint64_t offset, const ConstBufferSequence &buffers, error_code &ec) noexcept |
| |
| template<typename MutableBufferSequence , typename Handler > |
| void_or_deduced | async_read_some (implementation_type &impl, const MutableBufferSequence &buffers, Handler &&handler) |
| |
| template<typename ConstBufferSequence , typename Handler > |
| void_or_deduced | async_write_some (implementation_type &impl, const ConstBufferSequence &buffers, Handler &&handler) |
| |
| template<typename MutableBufferSequence , typename Handler > |
| void_or_deduced | async_read_some_at (implementation_type &impl, uint64_t offset, const MutableBufferSequence &buffers, Handler &&handler) |
| |
| template<typename ConstBufferSequence , typename Handler > |
| void_or_deduced | async_write_some_at (implementation_type &impl, uint64_t offset, const ConstBufferSequence &buffers, Handler &&handler) |
| |
A FileService utilizing a thread-pool for async operations.
This FileService class uses a thread-pool to emulate asynchronous file I/O.