#include <threadedfilebuf.h>
Public Member Functions | |
void | operator() () |
threadedfilebuf (const std::string &filename, unsigned int buffer_size_bytes) | |
~threadedfilebuf () | |
Protected Member Functions | |
std::streamsize | xsputn (const char *s, std::streamsize n) |
Override streambuf::xsputn for asynchronous write. | |
Protected Attributes | |
boost::condition_variable | cond_dequeued |
boost::condition_variable | cond_queued |
std::filebuf | file |
char * | mem_buffer |
int | mem_end |
int | mem_max_size |
int | mem_size |
int | mem_start |
boost::mutex | update_mutex |
boost::thread | write_thread |
Definition at line 42 of file threadedfilebuf.h.
pangolin::threadedfilebuf::threadedfilebuf | ( | const std::string & | filename, |
unsigned int | buffer_size_bytes | ||
) |
Definition at line 37 of file threadedfilebuf.cpp.
Definition at line 48 of file threadedfilebuf.cpp.
void pangolin::threadedfilebuf::operator() | ( | ) |
Definition at line 103 of file threadedfilebuf.cpp.
std::streamsize pangolin::threadedfilebuf::xsputn | ( | const char * | s, |
std::streamsize | n | ||
) | [protected] |
Override streambuf::xsputn for asynchronous write.
Definition at line 60 of file threadedfilebuf.cpp.
boost::condition_variable pangolin::threadedfilebuf::cond_dequeued [protected] |
Definition at line 63 of file threadedfilebuf.h.
boost::condition_variable pangolin::threadedfilebuf::cond_queued [protected] |
Definition at line 62 of file threadedfilebuf.h.
std::filebuf pangolin::threadedfilebuf::file [protected] |
Definition at line 54 of file threadedfilebuf.h.
char* pangolin::threadedfilebuf::mem_buffer [protected] |
Definition at line 55 of file threadedfilebuf.h.
int pangolin::threadedfilebuf::mem_end [protected] |
Definition at line 59 of file threadedfilebuf.h.
int pangolin::threadedfilebuf::mem_max_size [protected] |
Definition at line 57 of file threadedfilebuf.h.
int pangolin::threadedfilebuf::mem_size [protected] |
Definition at line 56 of file threadedfilebuf.h.
int pangolin::threadedfilebuf::mem_start [protected] |
Definition at line 58 of file threadedfilebuf.h.
boost::mutex pangolin::threadedfilebuf::update_mutex [protected] |
Definition at line 61 of file threadedfilebuf.h.
boost::thread pangolin::threadedfilebuf::write_thread [protected] |
Definition at line 64 of file threadedfilebuf.h.