X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.h;h=aadc6acd48db7c49430e4823c74423a354168535;hp=7bd5bd9e963a4be383f2407a50fdf8a6f1c07d3e;hb=HEAD;hpb=c8bf2d6c15893ccc9dbc4e04611b7229029f4808 diff --git a/source/io/base.h b/source/io/base.h index 7bd5bd9..92c860d 100644 --- a/source/io/base.h +++ b/source/io/base.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include "handle.h" @@ -15,7 +16,7 @@ namespace IO { /** Common interface for all I/O objects. */ -class Base: private NonCopyable +class MSPCORE_API Base: private NonCopyable { public: /** RAII synchronization primitive. Prevents concurrent access to the @@ -42,9 +43,9 @@ public: sigc::signal signal_deleted; protected: - Mode mode; - bool eof_flag; - Mutex *mutex; + Mode mode = M_READ; + bool eof_flag = false; + Mutex *mutex = nullptr; Base(); public: