start stream

git-svn-id: svn://elaine/murooma/trunk@282 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-09-21 07:45:09 +00:00
parent ebfcbf5c26
commit 001bfa6aba
8 changed files with 75 additions and 6 deletions

View file

@ -43,6 +43,11 @@ public:
return active_;
}
virtual void setStreamActive(bool active)
{
streamActive = active;
}
protected:
void socketRead(void* _to, size_t _bytes);
@ -51,6 +56,7 @@ protected:
void writer();
std::atomic<bool> active_;
std::atomic<bool> streamActive;
mutable std::mutex mutex_;
std::thread* readerThread;
std::thread* writerThread;