Go to the source code of this file.
Functions | |
| static uint | safe_write (int fd, const void *data, uint sz, bool &ok) |
| Writes data to disk. | |
Writes data to disk.
This just uses the Standard C write() to write to disk. We retry forever on EAGAIN errors, and three times on any other error.
| fd | File descriptor | |
| data | Pointer to data to write | |
| sz | Size of data to write in bytes |
Definition at line 55 of file ThreadedFileWriter.cpp.
Referenced by ThreadedFileWriter::DiskLoop().
1.5.5