A
Anthony
Hi,
How does (Can?) the stream mechanism work in multithreaded programs?
I want to implement cout in my multithreaded program.
This cout stream is used for my debug information.
I don't want these messages to get shuffled when a thread switch takes
place.
The threads cannot be blocked, so I probably need to store cout messages
from each thread in a separate buffer.
Any leads or suggestions for this problem?
Greetings Anthony
How does (Can?) the stream mechanism work in multithreaded programs?
I want to implement cout in my multithreaded program.
This cout stream is used for my debug information.
I don't want these messages to get shuffled when a thread switch takes
place.
The threads cannot be blocked, so I probably need to store cout messages
from each thread in a separate buffer.
Any leads or suggestions for this problem?
Greetings Anthony