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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!z31g2000vbs.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: C++ primer on multithreading Date: Wed, 20 Apr 2011 05:00:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 83.3.40.82 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1303300857 27934 127.0.0.1 (20 Apr 2011 12:00:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Apr 2011 12:00:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z31g2000vbs.googlegroups.com; posting-host=83.3.40.82; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19891 Date: 2011-04-20T05:00:56-07:00 List-Id: On Apr 20, 12:45=A0pm, "Alex R. Mosteo" wrote: > I need to do some multi-threading stuff, in the sense that I will need th= e > equivalent of a protected object with some conditional blocking entries. This is not enough. What are you going to do with these entries? How many threads will use the same entry? How many entries will be used at a time by a single thread? If you don't try to reimplement the Ada semantics in full (select statement, requeue, anyone? :-) ), then conditional variables are sufficient to implement typical multithreading patterns - this can be nicely encapsulated by the "protected object" interface. Boost is a good quality wrapper for system services and therefore useful for portability, but brings a whole lot of dependencies with it - it might or might not be of concern. -- Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com