Set whether syncBuf emits its buffer on a call to sync.

Synopsis

Declared in <bslstl_syncbufbase.h>

static
void
setEmitOnSync(
    SyncBufBase* syncBuf,
    bool value);

Description

Set the "emit‐on‐sync" property of the synchronized buffer to the specified value. If "emit‐on‐sync" is true, the synchronized buffer will emit (see emitInternal) its buffered contents on a call to sync (or pubsync); otherwise the synchronized buffer will not be emitted on a sync. The behavior is undefined unless syncBuf is not null.

Parameters

Name

Description

syncBuf

synchronized buffer whose emit‐on‐sync flag is set

value

true to emit on sync; false otherwise

Created with MrDocs