libeblearntools
ebl::sbuf Class Reference

List of all members.

Public Member Functions

 sbuf (std::ostream &o, mutex *m=NULL, const char *prefix=NULL)
virtual int sync ()
virtual streamsize xsputn (const char *s, streamsize n)
 Put sequence of characters in buffer.

Friends

class mutex_ostream

Constructor & Destructor Documentation

ebl::sbuf::sbuf ( std::ostream &  o,
mutex m = NULL,
const char *  prefix = NULL 
)

Output to ostream o but prevent other

Parameters:
mThe mutex shared by all threads used to synchronize.
prefixIf not null, prefix is printed before each new line.

The documentation for this class was generated from the following files: