From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,371144ace2969d7e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.erje.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: C++ primer on multithreading Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 21 Apr 2011 08:58:31 +0200 Message-ID: <9014siefelqm$.18a5dek2p9s4h$.dlg@40tude.net> NNTP-Posting-Date: 21 Apr 2011 08:58:32 CEST NNTP-Posting-Host: cf79e539.newsspool2.arcor-online.net X-Trace: DXC=]:8iQVV>e=5RLigj];iP=8A9EHlD;3Yc24Fo<]lROoR18kF[ 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