Re: [03/10] msvcirt: Implement ostream::flush
6 Jun
2016
6 Jun
'16
8:37 a.m.
On 06/06/16 13:52, Iván Matellanes wrote:
DEFINE_THISCALL_WRAPPER(ostream_flush, 4) ostream* __thiscall ostream_flush(ostream *this) { - FIXME("(%p) stub\n", this); + ios *base = ostream_get_ios(this); + + TRACE("(%p)\n", this); + + if (call_streambuf_sync(base->sb) == EOF) + ios_clear(base, base->state | IOSTATE_failbit); This function should be thread-safe. Please use ios_lockbuf and ios_unlockbuf.
Thanks, Piotr
3478
Age (days ago)
3478
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban