std::basic_syncbuf<CharT,Traits,Allocator>::emit (3) - Linux Manuals
std::basic_syncbuf<CharT,Traits,Allocator>::emit: std::basic_syncbuf<CharT,Traits,Allocator>::emit
Command to display std::basic_syncbuf<CharT,Traits,Allocator>::emit
manual in Linux: $ man 3 std::basic_syncbuf<CharT,Traits,Allocator>::emit
NAME
std::basic_syncbuf<CharT,Traits,Allocator>::emit - std::basic_syncbuf<CharT,Traits,Allocator>::emit
Synopsis
bool emit();
Atomically transmits all pending output to the wrapped stream.
All emit() calls transferring characters to the same wrapped stream buffer object appear to execute in a total order, where each emit() call synchronizes-with subsequent emit() calls in that total order, even if these calls are made through difference instances of std::basic_syncbuf/std::basic_osyncstream. In practice, this means that emit() takes a lock uniquely associated with the wrapped stream object: for example, it could be held in a static hash map where the address of the wrapped stream is used as the key.
If a call had been made to sync since the last call to emit(), then also flushes the wrapped stream by calling pubsync() on it.
Parameters
(none)
Return value
true if all of the following is true:
* there is a wrapped stream (the wrapped streambuf pointer is not null)
* all characters from the temporary storage were successfully sent into the wrapped stream
* the call to pubsync(), if requested, also completed successfully.
Returns false otherwise.
Notes
Normally called by the destructor of the owning std::basic_osyncstream or by std::basic_osyncstream::emit.
Example
This section is incomplete
Reason: no example
See also
destroys the basic_osyncstream and emits its internal buffer
destructor (public member function of std::basic_osyncstream<CharT,Traits,Allocator>)
calls emit on the underlying basic_syncbuf to transmit its internal data to the final destination
emit (public member function of std::basic_osyncstream<CharT,Traits,Allocator>)
constructs a basic_syncbuf object
constructor (public member function)
Pages related to std::basic_syncbuf<CharT,Traits,Allocator>::emit
- std::basic_syncbuf<CharT,Traits,Allocator>::basic_syncbuf (3) - std::basic_syncbuf<CharT,Traits,Allocator>::basic_syncbuf
- std::basic_syncbuf<CharT,Traits,Allocator>::get_allocator (3) - std::basic_syncbuf<CharT,Traits,Allocator>::get_allocator
- std::basic_syncbuf<CharT,Traits,Allocator>::get_wrapped (3) - std::basic_syncbuf<CharT,Traits,Allocator>::get_wrapped
- std::basic_syncbuf<CharT,Traits,Allocator>::operator= (3) - std::basic_syncbuf<CharT,Traits,Allocator>::operator=
- std::basic_syncbuf<CharT,Traits,Allocator>::set_emit_on_sync (3) - std::basic_syncbuf<CharT,Traits,Allocator>::set_emit_on_sync
- std::basic_syncbuf<CharT,Traits,Allocator>::swap (3) - std::basic_syncbuf<CharT,Traits,Allocator>::swap
- std::basic_syncbuf<CharT,Traits,Allocator>::sync (3) - std::basic_syncbuf<CharT,Traits,Allocator>::sync
- std::basic_syncbuf<CharT,Traits,Allocator>::~basic_syncbuf (3) - std::basic_syncbuf<CharT,Traits,Allocator>::~basic_syncbuf
- std::basic_syncbuf (3) - std::basic_syncbuf
- std::basic_streambuf (3) - std::basic_streambuf
- std::basic_streambuf<CharT,Traits>::basic_streambuf (3) - std::basic_streambuf<CharT,Traits>::basic_streambuf
- std::basic_streambuf<CharT,Traits>::eback,gptr,egptr (3) - std::basic_streambuf<CharT,Traits>::eback,gptr,egptr
- std::basic_streambuf<CharT,Traits>::gbump (3) - std::basic_streambuf<CharT,Traits>::gbump
- std::basic_streambuf<CharT,Traits>::getloc (3) - std::basic_streambuf<CharT,Traits>::getloc
- std::basic_streambuf<CharT,Traits>::in_avail (3) - std::basic_streambuf<CharT,Traits>::in_avail
- std::basic_streambuf<CharT,Traits>::operator= (3) - std::basic_streambuf<CharT,Traits>::operator=