}
}
-bool Stream::WaitForData()
+bool Stream::WaitForData(void)
{
if (!SupportsWaiting())
BOOST_THROW_EXCEPTION(std::runtime_error("Stream does not support waiting."));
static void StreamDummyCallback(void)
{ }
+void Stream::SetCorked(bool corked)
+{
+ m_Corked = corked;
+}
+
+bool Stream::IsCorked(void) const
+{
+ return m_Corked;
+}
+
void Stream::Close(void)
{
OnDataAvailable.disconnect_all_slots();
virtual bool SupportsWaiting(void) const;
+ virtual void SetCorked(bool corked);
+ bool IsCorked(void) const;
+
virtual bool IsDataAvailable(void) const;
void RegisterDataHandler(const boost::function<void(const Stream::Ptr&)>& handler);
boost::mutex m_Mutex;
boost::condition_variable m_CV;
+
+ bool m_Corked{false};
};
}