|
Evo C++ Library v0.5.1
|
#include <evo/iothread.h>
Stream with mutex for multithreaded synchronization, specialized for File.
Public Types | |
| typedef StreamMT< File > | This |
| This type. More... | |
Public Member Functions | |
| StreamMT (Newline nl=NL, bool exceptions=1) | |
| Constructor. More... | |
| StreamMT (const char *path, Open mode=oREAD, bool flushlines=false, Newline nl=NL_SYS, bool exceptions=1) | |
| Constructor to open file. More... | |
Public Attributes | |
| Mutex | mutex |
| Stream mutex. More... | |
| File | stream |
| Stream object. More... | |
Constructor.
| nl | Default newline value to use for text reads/writes |
| exceptions | Whether to enable exceptions on error, default set by Evo config: EVO_EXCEPTIONS |
|
inline |
Constructor to open file.
| path | File path to use |
| mode | Access mode to use |
| flushlines | Whether to flush text output on newlines (line buffering) |
| nl | Default newline value to use for text reads/writes |
| exceptions | Whether to enable exceptions on error, default set by Evo config: EVO_EXCEPTIONS |
1.8.13