Seastar
High performance C++ framework for concurrent servers
|
A shard-transportable handle to a file.
If you need to access a file (for reads only) across multiple shards, you can use the file::dup() method to create a file_handle
, transport this file handle to another shard, and use the handle to create file object on that shard. This is more efficient than calling open_file_dma() again.
#include <seastar/core/file.hh>
Public Member Functions | |
file_handle (const file_handle &) | |
Copies a file handle object. | |
file_handle (file_handle &&) noexcept | |
Moves a file handle object. | |
file_handle & | operator= (const file_handle &) |
Assigns a file handle object. | |
file_handle & | operator= (file_handle &&) noexcept |
Move-assigns a file handle object. | |
file | to_file () const & |
Converts the file handle object to a file. | |
file | to_file () && |
Converts the file handle object to a file. | |