[#bsl-basic_syncbuf-set_emit_on_sync]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::set&lowbar;emit&lowbar;on&lowbar;sync
:relfileprefix: ../../
:mrdocs:

Call the `emit` function by each `sync` call if the specified `value` is `true`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;syncbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
set&lowbar;emit&lowbar;on&lowbar;sync(bool value) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| whether `sync` should call `emit`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
