cpp/io/basic syncbuf/sync

First, records that a flush is pending, by updating the appropriate private flag.

Then, if the current emit-on-sync policy is, makes a call to.

Otherwise (if the emit-on-sync policy is, which is the default), the flush is suspended until is called, such as through  or

Parameters
(none)