home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / lib / gcc-lib / m68k-amigaos / 2.7.2.1 / adainclude / s-tasabo.ads < prev    next >
Encoding:
Text File  |  1995-10-17  |  3.2 KB  |  57 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --               S Y S T E M . T A S K I N G . A B O R T I O N              --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.14 $                            --
  10. --                                                                          --
  11. --     Copyright (c) 1991,1992,1993,1994,1995 FSU, All Rights Reserved      --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Task_Primitives;
  27. --  Used for,  Task_Primitives.Pre_Call_State
  28.  
  29. package System.Tasking.Abortion is
  30.  
  31.    procedure Abort_Tasks (Tasks : Task_List);
  32.    --  Abort_Tasks is called to initiate abortion, however, the actual
  33.    --  abortion is done by abortee by means of Abort_Handler
  34.  
  35.    procedure Change_Base_Priority (T : Task_ID);
  36.    --  Change the base priority of T.
  37.    --  Has to be called with T.Lock write locked.
  38.  
  39.    procedure Defer_Abortion;
  40.    --  Defer the affects of low-level abortion in the calling task until a
  41.    --  matching Undefer_Abortion call is executed.  Defer_Abortion can be
  42.    --  nested; abortion will be deferred until the calling task has
  43.    --  called Undefer_Abortion for each outstanding call to
  44.    --  Defer_Abortion.  Note that abortion must be deferred before
  45.    --  calling any low-level (GNULLI) services.
  46. --    pragma Inline (Defer_Abortion); --  To allow breakpoints to be set. ???
  47.  
  48.    procedure Undefer_Abortion;
  49.    --  Undo the effects of one call to Defer_Abortion.  When the calling
  50.    --  task has called Undefer_Abortion for each outstanding call to
  51.    --  Defer_Abortion, any pending low-level abortion will take effect,
  52.    --  and subsequent low-level abortions will have an immediate
  53.    --  asynchronous effect.
  54. --    pragma Inline (Undefer_Abortion); --  To allow breakpoints to be set.
  55.  
  56. end System.Tasking.Abortion;
  57.