ThreadedFileWriter.cpp File Reference

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.


Function Documentation

safe_write ( int  fd,
const void *  data,
uint  sz,
bool ok 
) [static]

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.

Parameters:
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().


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5