![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <file-descriptor.hh>
Public Member Functions | |
| AutoCloseFD (Descriptor fd) noexcept | |
| AutoCloseFD (const AutoCloseFD &fd)=delete | |
| AutoCloseFD (AutoCloseFD &&fd) noexcept | |
| AutoCloseFD & | operator= (const AutoCloseFD &fd)=delete |
| AutoCloseFD & | operator= (AutoCloseFD &&fd) |
| Descriptor | get () const noexcept |
| operator bool () const noexcept | |
| Descriptor | release () noexcept |
| void | close () |
| void | fsync () const |
| void | startFsync () const |
Automatic cleanup of resources.
|
inline |
Perform a blocking fsync operation.
| void nix::AutoCloseFD::startFsync | ( | ) | const |
Asynchronously flush to disk without blocking, if available on the platform. This is just a performance optimization, and fsync must be run later even if this is called.