Skip to content
Snippets Groups Projects
Commit 3ec519ec authored by Sven Kaulmann's avatar Sven Kaulmann
Browse files

Add pub sync function to SuspendableStrBuffer

parent 47ba7d5c
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,12 @@ SuspendableStrBuffer::int_type SuspendableStrBuffer::overflow(SuspendableStrBuff ...@@ -59,6 +59,12 @@ SuspendableStrBuffer::int_type SuspendableStrBuffer::overflow(SuspendableStrBuff
return traits_type::eof() + 1; return traits_type::eof() + 1;
} }
int SuspendableStrBuffer::pubsync()
{
if (enabled())
return BaseType::pubsync();
return 0;
}
LogStream& LogStream::flush() LogStream& LogStream::flush()
{ {
......
...@@ -57,6 +57,8 @@ protected: ...@@ -57,6 +57,8 @@ protected:
virtual int_type overflow(int_type ch = traits_type::eof()); virtual int_type overflow(int_type ch = traits_type::eof());
private: private:
int pubsync();
inline bool enabled() const inline bool enabled() const
{ {
return (!is_suspended_) && (logflags_ & loglevel_); return (!is_suspended_) && (logflags_ & loglevel_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment