Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::file_handle Class Reference

Detailed Description

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_handleoperator= (const file_handle &)
 Assigns a file handle object.
 
file_handleoperator= (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.
 

The documentation for this class was generated from the following file: