All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
pangolin::threadedfilebuf Class Reference

#include <threadedfilebuf.h>

List of all members.

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

Detailed Description

Definition at line 42 of file threadedfilebuf.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 55 of file threadedfilebuf.h.

Definition at line 59 of file threadedfilebuf.h.

Definition at line 57 of file threadedfilebuf.h.

Definition at line 56 of file threadedfilebuf.h.

Definition at line 58 of file threadedfilebuf.h.

Definition at line 61 of file threadedfilebuf.h.

boost::thread pangolin::threadedfilebuf::write_thread [protected]

Definition at line 64 of file threadedfilebuf.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pangolin_wrapper
Author(s): Todor Stoyanov
autogenerated on Wed Feb 13 2013 14:03:25