comp.lang.ada
 help / color / mirror / Atom feed
* Tasking Error Causing SIGILL
@ 1999-09-05  0:00 Dennis Miller
  1999-09-05  0:00 ` Jerry van Dijk
  0 siblings, 1 reply; 3+ messages in thread
From: Dennis Miller @ 1999-09-05  0:00 UTC (permalink / raw)


I have a task type that acts as a semaphore for a buffer list.  The
entry points for the task are Start, Seize, Release, and Stop.  The task
body looks something like this:

   task body Semaphore
      Boolean busy; 
      Boolean complete;
   begin
      accept Start
         select
            when not Busy =>
               accept Seize do
                 busy = true;

         or accept Release
            busy = false; 

         or when not Busy =>
               accept Stop do
                 complete = true;
         end select;

     -- CAN'T REMEMBER THE LINE OF CODE THAT GOES HERE
      
   end Semaphore;
         


My code is compiled on Solaris 7 using the VADS 6.2.3c compiler and AXI
Bindings from ATC (version 3.2).

My problem is I get a SIGILL error when I try to clear the buffer. 
Could this problem be caused because a task called Seize, Release, or
Stop before Start has been called?  When I checked the tasks running, I
have two suspended at select and two more suspended at fast select
(sorry...I'm at home and I was writing this at work).

--Dennis-




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-09-07  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-05  0:00 Tasking Error Causing SIGILL Dennis Miller
1999-09-05  0:00 ` Jerry van Dijk
1999-09-07  0:00   ` Ted Dennison

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