nux-1.16.0
|
CAUTION: right now this class is not thread aware. More...
Public Member Functions | |
Impl (AsyncFileWriter *owner, std::string const &filename) | |
void | Write (std::string const &data) |
void | Close () |
void | ProcessAsync () |
Static Public Member Functions | |
static void | AppendAsyncCallback (GFile *source, GAsyncResult *res, Impl *impl) |
static void | WriteAsyncCallback (GOutputStream *source, GAsyncResult *res, Impl *impl) |
static void | CloseAsyncCallback (GOutputStream *source, GAsyncResult *res, Impl *impl) |
Public Attributes | |
AsyncFileWriter * | owner_ |
GCancellable * | cancel_ |
GFile * | file_ |
GFileOutputStream * | output_stream_ |
bool | close_pending_ |
bool | pending_async_call_ |
std::stringstream | pending_content_ |
std::string | data_to_write_ |
CAUTION: right now this class is not thread aware.
It assumes that all the write calls are coming from a single thread. Perhaps we need to fix this?
Definition at line 39 of file AsyncFileWriter.cpp.