MJPEGServer: Use worker thread model.

Also make the worker thread a class for future per-client configuration use.

Depends on wpiutil #153.
This commit is contained in:
Peter Johnson
2016-11-11 00:01:58 -08:00
parent 254b88bdbe
commit c80c4ae55c
4 changed files with 135 additions and 56 deletions

View File

@@ -66,6 +66,8 @@ class SinkImpl {
llvm::StringRef GetError(llvm::SmallVectorImpl<char>& buf) const;
protected:
virtual void SetSourceImpl(std::shared_ptr<SourceImpl> source);
mutable std::mutex m_mutex;
private: