From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: C++ primer on multithreading
Date: Thu, 21 Apr 2011 08:58:31 +0200
Date: 2011-04-21T08:58:32+02:00 [thread overview]
Message-ID: <9014siefelqm$.18a5dek2p9s4h$.dlg@40tude.net> (raw)
In-Reply-To: iomlk6$hii$1@dont-email.me
On Wed, 20 Apr 2011 15:04:06 +0200, Alex R. Mosteo wrote:
> Basically I need a protected queue with blocking semantics; several
> writters, one consumer.
That is just one mutex + one manual-reset event.
An interesting issue is the producer's behavior when the queue is full. I
presume it would fail or the queue may grow infinitely (:-)) You may need
an additional pulse event to handle this more reasonably.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2011-04-21 6:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 10:45 C++ primer on multithreading Alex R. Mosteo
2011-04-20 11:23 ` Peter C. Chapin
2011-04-20 13:06 ` Alex R. Mosteo
2011-04-20 11:32 ` Dmitry A. Kazakov
2011-04-20 12:00 ` Maciej Sobczak
2011-04-20 13:04 ` Alex R. Mosteo
2011-04-20 14:34 ` Georg Bauhaus
2011-04-20 20:44 ` Maciej Sobczak
2011-04-21 8:50 ` Alex R. Mosteo
2011-04-21 6:58 ` Dmitry A. Kazakov [this message]
2011-04-21 21:03 ` Maciej Sobczak
2011-04-22 8:38 ` Dmitry A. Kazakov
2011-04-22 21:45 ` Maciej Sobczak
2011-04-23 6:51 ` Dmitry A. Kazakov
2011-04-23 21:35 ` Maciej Sobczak
2011-04-24 7:42 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox