[#BloombergLP-bslstl-SyncBufBaseUtil-setEmitOnSync] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SyncBufBaseUtil.adoc[SyncBufBaseUtil]::setEmitOnSync :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bslstl_syncbufbase.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setEmitOnSync( xref:BloombergLP/bslstl/SyncBufBase.adoc[SyncBufBase]* syncBuf, bool value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#