comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Blocking protected ops (was: Tasks and C/C++ code)
Date: 1998/11/24
Date: 1998-11-24T00:00:00+00:00	[thread overview]
Message-ID: <365AD980.5729FCD8@elca-matrix.ch> (raw)
In-Reply-To: 3659b3a8.386623@news.pacbell.net

Tom Moran wrote:
> 
> >Anyway I have seen gethostbyname protected by a protected object (I
> >think it is in GLADE). So it does work.
>   Does the call to gethostbyname occur inside a protected procedure,
> even though it blocks, or is it controlled by a semaphore or something
> that is a protected object?

I checked the GLADE sources and it's a semaphore, so the protected call
itself will not block on gethostbyname.

Anyway, the question remains: is it legal for a protected body to call
some imported subprogram that could block (in the pthreads sense of the
term) ?

Does someone know why the rule 9.5.1(8-18) is there at all ?




  reply	other threads:[~1998-11-24  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-09  0:00 Tasks and C/C++ code Barry L. Dorough
1998-11-09  0:00 ` Mats Weber
1998-11-10  0:00 ` dennison
1998-11-11  0:00   ` dbotton
1998-11-11  0:00     ` Barry L. Dorough
1998-11-11  0:00       ` dennison
1998-11-12  0:00       ` Jerry van Dijk
1998-11-13  0:00       ` Mats Weber
1998-11-11  0:00     ` dennison
1998-11-18  0:00     ` Samuel Tardieu
1998-11-19  0:00       ` Mats Weber
1998-11-20  0:00         ` Samuel Tardieu
1998-11-23  0:00           ` Mats Weber
1998-11-23  0:00             ` Tom Moran
1998-11-24  0:00               ` Mats Weber [this message]
1998-11-24  0:00                 ` Blocking protected ops (was: Tasks and C/C++ code) Robert I. Eachus
1998-11-25  0:00                   ` Mats Weber
1998-11-25  0:00                     ` Jean-Pierre Rosen
1998-11-27  0:00                       ` Mats Weber
1998-11-25  0:00                     ` Robert I. Eachus
1998-11-26  0:00                       ` Simon Wright
1998-11-27  0:00                         ` David Botton
1998-11-27  0:00                           ` Tom Moran
1998-11-27  0:00                             ` Jerry van Dijk
1998-11-28  0:00                               ` Tom Moran
1998-11-27  0:00                           ` Mats Weber
1998-11-29  0:00                         ` Tucker Taft
1998-11-30  0:00                           ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox