Miles1981 wrote:matt42 wrote:If you can't reset the output buffer how would it ever be safe to write anything there?
The OP question doesn't make sense.
You CAN reset also the input buffer. This doesn't mean its safe and correct.
stratum wrote:As long as nobody overwrites a buffer it can be shared without synchronization- therefore the input buffer can be shared because all reasonable people assume inputs to be constant even when they aren't declared to be.
The same isn't true for the output buffer, because there is at least one piece of code that has to modify it - your code.
It's so obvious that the only reasonable reply was to suggest 'take a break and have some fresh air' (was done right in the beginning).