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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9f2d3e9075dd4492 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: Asyncronous call to task Date: Thu, 06 Aug 2009 17:48:28 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 X-Newsreader: Forte Agent 2.0/32.652 Cancel-Lock: sha1:SjYHAsqQi1rkN3uLGfJhLoPeaF0= Xref: g2news2.google.com comp.lang.ada:7634 Date: 2009-08-06T17:48:28+01:00 List-Id: On Thu, 06 Aug 2009 18:24:34 +0200, la@la.com (Lisa Ansellotti) wrote: >how can i call a entry in a task without block my main thread? >i need to do something like this: >in the main: > >task1.start; > >in the task: > >task body task1 is > begin > accept start; > --return the control to the main thread but continue the task1 jobs Once the accept statement completes the rendezvous is complete so the main and task1 will continue independently. The only synchronous bit is the rendezvous here; when the main calls the task1.start entry it will wait until task1 is ready at the "accept start;" line. If you were to do something like: accept start do blah... end start; then called it from main, main would wait until the "end start" before going on its merry way. Hope this helps. If not, I've misunderstood your question.