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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2dda499a002ec3c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-27 21:20:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed0.news.atl.earthlink.net!news.atl.earthlink.net!news.mindspring.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: rendez-vous underlying mechanism Date: Wed, 27 Mar 2002 21:20:39 -0800 Organization: AdaWorks Software Engineering Message-ID: <3CA2A827.11140295@adaworks.com> References: Reply-To: richard@adaworks.com NNTP-Posting-Host: 41.b2.4a.cd Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 28 Mar 2002 05:22:22 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:21747 Date: 2002-03-28T05:22:22+00:00 List-Id: Kevin Cline wrote: > "Bozo" wrote in message news:... > > Hi all, > > > > I'm sorry I wasn't clear enough. > > I don't use ADA at the moment but I was a brave ADA programmer once. > > I use C at the moment and I have a case where synchronous rendez-vous would > > be better that traditional asynchrounous intertask communications. > > > > Does anyone have an idea how to implement that in C with semaphores for > > example ? > > This depends on the underlying OS. If you are using pthreads, > then see the manual entry for pthread_cond_wait. This approach, of course, does not come close to the capabilities already built-in to the Ada tasking model. Ever heard of protected types. Richard Riehle