comp.lang.ada
 help / color / mirror / Atom feed
From: David Shochat <shochatd@yahoo.com>
Subject: protected object with no private part
Date: Tue, 07 Dec 2010 05:10:42 -0600
Date: 2010-12-07T05:10:42-06:00	[thread overview]
Message-ID: <U66dnRVn0fyvi2PRnZ2dnUVZ_hWdnZ2d@giganews.com> (raw)

This is for Ada 95. I have a shared object that declares two protected 
procedures and nothing else. There is nothing in the private part (the 
shared entity I'm trying to control access to is shared memory accessed 
using a non-Ada interface). Can I assume that while one of my tasks is 
executing one of the procedures, it is not possible for another task to 
execute the other? The reason for using OS shared memory is that there is 
another (single-threaded) /process/ that also has to access it. This is 
Rational/IBM Apex with Ada tasks mapped to threads (HP-UX). There is 
locking in use to assure that only one process accesses the shared memory 
at a time.



             reply	other threads:[~2010-12-07 11:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 11:10 David Shochat [this message]
2010-12-07 19:12 ` protected object with no private part Jeffrey Carter
replies disabled

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