[Cppcms-users] Consumer producer problem
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2013-03-13 08:39:26
|
Hi all. I am using a QProcess to run an external bash script. There I am reading back stdout and stderr and send these information back to the client via SSE. Now I run into the problem that QProcess produces messages a lot faster then they got send via SSE. The result is that the used ring-buffer has overwritten elements and not all "messages" got send. At the moment I am using the sse::bounded_event_queue. Is there anything I need to take of when using condition_variable? What is the best approach to get this handled in a clean way? thanks -- Christian Gmeiner, MSc |