1 ------------------------------------------------------------------------------
3 -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
5 -- S Y S T E M . T A S K _ P R I M I T I V E S . O P E R A T I O N S --
11 -- Copyright (C) 1991-2001, Florida State University --
13 -- GNARL is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNARL; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
31 -- GNARL was developed by the GNARL team at Florida State University. It is --
32 -- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
33 -- State University (http://www.gnat.com). --
35 ------------------------------------------------------------------------------
37 -- This is a OpenVMS/Alpha version of this package
39 -- This package contains all the GNULL primitives that interface directly
40 -- with the underlying OS.
43 -- Turn off polling, we do not want ATC polling to take place during
44 -- tasking operations. It causes infinite loops and other problems.
46 with System
.Tasking
.Debug
;
47 -- used for Known_Tasks
53 with System
.Parameters
;
57 -- used for Ada_Task_Control_Block
60 with System
.Soft_Links
;
61 -- used for Defer/Undefer_Abort
64 -- Note that we do not use System.Tasking.Initialization directly since
65 -- this is a higher level package that we shouldn't depend on. For example
66 -- when using the restricted run time, it is replaced by
67 -- System.Tasking.Restricted.Initialization
69 with System
.OS_Primitives
;
70 -- used for Delay_Modes
72 with Unchecked_Conversion
;
73 with Unchecked_Deallocation
;
75 package body System
.Task_Primitives
.Operations
is
77 use System
.Tasking
.Debug
;
80 use System
.OS_Interface
;
81 use System
.Parameters
;
82 use System
.OS_Primitives
;
83 use type System
.OS_Primitives
.OS_Time
;
85 package SSL
renames System
.Soft_Links
;
91 -- The followings are logically constants, but need to be initialized
94 ATCB_Key
: aliased pthread_key_t
;
95 -- Key used to find the Ada Task_ID associated with a thread
97 All_Tasks_L
: aliased System
.Task_Primitives
.RTS_Lock
;
98 -- See comments on locking rules in System.Tasking (spec).
100 Environment_Task_ID
: Task_ID
;
101 -- A variable to hold Task_ID for the environment task.
103 Time_Slice_Val
: Integer;
104 pragma Import
(C
, Time_Slice_Val
, "__gl_time_slice_val");
106 Dispatching_Policy
: Character;
107 pragma Import
(C
, Dispatching_Policy
, "__gl_task_dispatching_policy");
109 FIFO_Within_Priorities
: constant Boolean := Dispatching_Policy
= 'F';
110 -- Indicates whether FIFO_Within_Priorities is set.
112 -----------------------
113 -- Local Subprograms --
114 -----------------------
116 function To_Task_ID
is new Unchecked_Conversion
(System
.Address
, Task_ID
);
118 function To_Address
is new Unchecked_Conversion
(Task_ID
, System
.Address
);
120 procedure Timer_Sleep_AST
(ID
: Address
);
121 -- Signal the condition variable when AST fires.
123 procedure Timer_Sleep_AST
(ID
: Address
) is
124 Result
: Interfaces
.C
.int
;
125 Self_ID
: Task_ID
:= To_Task_ID
(ID
);
128 Self_ID
.Common
.LL
.AST_Pending
:= False;
129 Result
:= pthread_cond_signal_int_np
(Self_ID
.Common
.LL
.CV
'Access);
136 -- The underlying thread system sets a guard page at the
137 -- bottom of a thread stack, so nothing is needed.
138 -- ??? Check the comment above
140 procedure Stack_Guard
(T
: ST
.Task_ID
; On
: Boolean) is
149 function Get_Thread_Id
(T
: ST
.Task_ID
) return OSI
.Thread_Id
is
151 return T
.Common
.LL
.Thread
;
158 function Self
return Task_ID
is
159 Result
: System
.Address
;
162 Result
:= pthread_getspecific
(ATCB_Key
);
163 pragma Assert
(Result
/= System
.Null_Address
);
164 return To_Task_ID
(Result
);
167 ---------------------
168 -- Initialize_Lock --
169 ---------------------
171 -- Note: mutexes and cond_variables needed per-task basis are
172 -- initialized in Initialize_TCB and the Storage_Error is
173 -- handled. Other mutexes (such as All_Tasks_Lock, Memory_Lock...)
174 -- used in RTS is initialized before any status change of RTS.
175 -- Therefore rasing Storage_Error in the following routines
176 -- should be able to be handled safely.
178 procedure Initialize_Lock
(Prio
: System
.Any_Priority
; L
: access Lock
) is
179 Attributes
: aliased pthread_mutexattr_t
;
180 Result
: Interfaces
.C
.int
;
183 Result
:= pthread_mutexattr_init
(Attributes
'Access);
184 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
186 if Result
= ENOMEM
then
191 L
.Prio
:= Interfaces
.C
.int
(Prio
);
193 Result
:= pthread_mutex_init
(L
.L
'Access, Attributes
'Access);
194 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
196 if Result
= ENOMEM
then
200 Result
:= pthread_mutexattr_destroy
(Attributes
'Access);
201 pragma Assert
(Result
= 0);
204 procedure Initialize_Lock
(L
: access RTS_Lock
; Level
: Lock_Level
) is
205 Attributes
: aliased pthread_mutexattr_t
;
206 Result
: Interfaces
.C
.int
;
209 Result
:= pthread_mutexattr_init
(Attributes
'Access);
210 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
212 if Result
= ENOMEM
then
216 -- Don't use, see comment in s-osinte.ads about ERRORCHECK mutexes.
217 -- Result := pthread_mutexattr_settype_np
218 -- (Attributes'Access, PTHREAD_MUTEX_ERRORCHECK_NP);
219 -- pragma Assert (Result = 0);
221 -- Result := pthread_mutexattr_setprotocol
222 -- (Attributes'Access, PTHREAD_PRIO_PROTECT);
223 -- pragma Assert (Result = 0);
225 -- Result := pthread_mutexattr_setprioceiling
226 -- (Attributes'Access, Interfaces.C.int (System.Any_Priority'Last));
227 -- pragma Assert (Result = 0);
229 Result
:= pthread_mutex_init
(L
, Attributes
'Access);
231 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
233 if Result
= ENOMEM
then
237 Result
:= pthread_mutexattr_destroy
(Attributes
'Access);
238 pragma Assert
(Result
= 0);
245 procedure Finalize_Lock
(L
: access Lock
) is
246 Result
: Interfaces
.C
.int
;
249 Result
:= pthread_mutex_destroy
(L
.L
'Access);
250 pragma Assert
(Result
= 0);
253 procedure Finalize_Lock
(L
: access RTS_Lock
) is
254 Result
: Interfaces
.C
.int
;
257 Result
:= pthread_mutex_destroy
(L
);
258 pragma Assert
(Result
= 0);
265 procedure Write_Lock
(L
: access Lock
; Ceiling_Violation
: out Boolean) is
266 Self_ID
: constant Task_ID
:= Self
;
267 All_Tasks_Link
: constant Task_ID
:= Self
.Common
.All_Tasks_Link
;
268 Current_Prio
: System
.Any_Priority
;
269 Result
: Interfaces
.C
.int
;
272 Current_Prio
:= Get_Priority
(Self_ID
);
274 -- If there is no other tasks, no need to check priorities.
276 if All_Tasks_Link
/= Null_Task
277 and then L
.Prio
< Interfaces
.C
.int
(Current_Prio
)
279 Ceiling_Violation
:= True;
283 Result
:= pthread_mutex_lock
(L
.L
'Access);
284 pragma Assert
(Result
= 0);
286 Ceiling_Violation
:= False;
287 -- Why is this commented out ???
288 -- L.Prio_Save := Interfaces.C.int (Current_Prio);
289 -- Set_Priority (Self_ID, System.Any_Priority (L.Prio));
292 procedure Write_Lock
(L
: access RTS_Lock
) is
293 Result
: Interfaces
.C
.int
;
296 Result
:= pthread_mutex_lock
(L
);
297 pragma Assert
(Result
= 0);
300 procedure Write_Lock
(T
: Task_ID
) is
301 Result
: Interfaces
.C
.int
;
304 Result
:= pthread_mutex_lock
(T
.Common
.LL
.L
'Access);
305 pragma Assert
(Result
= 0);
312 procedure Read_Lock
(L
: access Lock
; Ceiling_Violation
: out Boolean) is
314 Write_Lock
(L
, Ceiling_Violation
);
321 procedure Unlock
(L
: access Lock
) is
322 Result
: Interfaces
.C
.int
;
325 Result
:= pthread_mutex_unlock
(L
.L
'Access);
326 pragma Assert
(Result
= 0);
329 procedure Unlock
(L
: access RTS_Lock
) is
330 Result
: Interfaces
.C
.int
;
333 Result
:= pthread_mutex_unlock
(L
);
334 pragma Assert
(Result
= 0);
337 procedure Unlock
(T
: Task_ID
) is
338 Result
: Interfaces
.C
.int
;
341 Result
:= pthread_mutex_unlock
(T
.Common
.LL
.L
'Access);
342 pragma Assert
(Result
= 0);
349 procedure Sleep
(Self_ID
: Task_ID
;
350 Reason
: System
.Tasking
.Task_States
) is
351 Result
: Interfaces
.C
.int
;
354 pragma Assert
(Self_ID
= Self
);
355 Result
:= pthread_cond_wait
(Self_ID
.Common
.LL
.CV
'Access,
356 Self_ID
.Common
.LL
.L
'Access);
357 -- EINTR is not considered a failure.
358 pragma Assert
(Result
= 0 or else Result
= EINTR
);
360 if Self_ID
.Deferral_Level
= 0
361 and then Self_ID
.Pending_ATC_Level
< Self_ID
.ATC_Nesting_Level
364 raise Standard
'Abort_Signal;
372 -- This is for use within the run-time system, so abort is
373 -- assumed to be already deferred, and the caller should be
374 -- holding its own ATCB lock.
376 procedure Timed_Sleep
379 Mode
: ST
.Delay_Modes
;
380 Reason
: System
.Tasking
.Task_States
;
381 Timedout
: out Boolean;
382 Yielded
: out Boolean)
384 Sleep_Time
: OS_Time
;
385 Result
: Interfaces
.C
.int
;
386 Status
: Cond_Value_Type
;
392 Sleep_Time
:= To_OS_Time
(Time
, Mode
);
394 if Self_ID
.Pending_ATC_Level
< Self_ID
.ATC_Nesting_Level
395 or else Self_ID
.Pending_Priority_Change
400 Self_ID
.Common
.LL
.AST_Pending
:= True;
403 (Status
, 0, Sleep_Time
,
404 Timer_Sleep_AST
'Access, To_Address
(Self_ID
), 0);
406 if (Status
and 1) /= 1 then
410 Result
:= pthread_cond_wait
(Self_ID
.Common
.LL
.CV
'Access,
411 Self_ID
.Common
.LL
.L
'Access);
413 if not Self_ID
.Common
.LL
.AST_Pending
then
416 Sys_Cantim
(Status
, To_Address
(Self_ID
), 0);
417 pragma Assert
((Status
and 1) = 1);
426 -- This is for use in implementing delay statements, so
427 -- we assume the caller is abort-deferred but is holding
430 procedure Timed_Delay
433 Mode
: ST
.Delay_Modes
)
435 Sleep_Time
: OS_Time
;
436 Result
: Interfaces
.C
.int
;
437 Status
: Cond_Value_Type
;
441 -- Only the little window between deferring abort and
442 -- locking Self_ID is the reason we need to
443 -- check for pending abort and priority change below! :(
446 Write_Lock
(Self_ID
);
448 if not (Time
= 0.0 and then Mode
= Relative
) then
450 Sleep_Time
:= To_OS_Time
(Time
, Mode
);
452 if Mode
= Relative
or else OS_Clock
< Sleep_Time
then
454 Self_ID
.Common
.State
:= Delay_Sleep
;
455 Self_ID
.Common
.LL
.AST_Pending
:= True;
458 (Status
, 0, Sleep_Time
,
459 Timer_Sleep_AST
'Access, To_Address
(Self_ID
), 0);
461 if (Status
and 1) /= 1 then
466 if Self_ID
.Pending_Priority_Change
then
467 Self_ID
.Pending_Priority_Change
:= False;
468 Self_ID
.Common
.Base_Priority
:= Self_ID
.New_Base_Priority
;
469 Set_Priority
(Self_ID
, Self_ID
.Common
.Base_Priority
);
472 if Self_ID
.Pending_ATC_Level
< Self_ID
.ATC_Nesting_Level
then
473 Sys_Cantim
(Status
, To_Address
(Self_ID
), 0);
474 pragma Assert
((Status
and 1) = 1);
478 Result
:= pthread_cond_wait
(Self_ID
.Common
.LL
.CV
'Access,
479 Self_ID
.Common
.LL
.L
'Access);
481 exit when not Self_ID
.Common
.LL
.AST_Pending
;
485 Self_ID
.Common
.State
:= Runnable
;
491 Result
:= sched_yield
;
492 SSL
.Abort_Undefer
.all;
495 ---------------------
496 -- Monotonic_Clock --
497 ---------------------
499 function Monotonic_Clock
return Duration
500 renames System
.OS_Primitives
.Monotonic_Clock
;
506 function RT_Resolution
return Duration is
515 procedure Wakeup
(T
: Task_ID
; Reason
: System
.Tasking
.Task_States
) is
516 Result
: Interfaces
.C
.int
;
519 Result
:= pthread_cond_signal
(T
.Common
.LL
.CV
'Access);
520 pragma Assert
(Result
= 0);
527 procedure Yield
(Do_Yield
: Boolean := True) is
528 Result
: Interfaces
.C
.int
;
532 Result
:= sched_yield
;
540 procedure Set_Priority
542 Prio
: System
.Any_Priority
;
543 Loss_Of_Inheritance
: Boolean := False)
545 Result
: Interfaces
.C
.int
;
546 Param
: aliased struct_sched_param
;
548 T
.Common
.Current_Priority
:= Prio
;
549 Param
.sched_priority
:= Interfaces
.C
.int
(Underlying_Priorities
(Prio
));
551 if Time_Slice_Val
> 0 then
552 Result
:= pthread_setschedparam
553 (T
.Common
.LL
.Thread
, SCHED_RR
, Param
'Access);
555 elsif FIFO_Within_Priorities
or else Time_Slice_Val
= 0 then
556 Result
:= pthread_setschedparam
557 (T
.Common
.LL
.Thread
, SCHED_FIFO
, Param
'Access);
560 Result
:= pthread_setschedparam
561 (T
.Common
.LL
.Thread
, SCHED_OTHER
, Param
'Access);
564 pragma Assert
(Result
= 0);
571 function Get_Priority
(T
: Task_ID
) return System
.Any_Priority
is
573 return T
.Common
.Current_Priority
;
580 procedure Enter_Task
(Self_ID
: Task_ID
) is
581 Result
: Interfaces
.C
.int
;
584 Self_ID
.Common
.LL
.Thread
:= pthread_self
;
586 -- It is not safe for the new task accept signals until it
587 -- has bound its TCB pointer to the thread with pthread_setspecific (),
588 -- since the handler wrappers use the TCB pointer
589 -- to restore the stack limit.
591 Result
:= pthread_setspecific
(ATCB_Key
, To_Address
(Self_ID
));
592 pragma Assert
(Result
= 0);
595 for I
in Known_Tasks
'Range loop
596 if Known_Tasks
(I
) = null then
597 Known_Tasks
(I
) := Self_ID
;
598 Self_ID
.Known_Tasks_Index
:= I
;
602 Unlock_All_Tasks_List
;
609 function New_ATCB
(Entry_Num
: Task_Entry_Index
) return Task_ID
is
611 return new Ada_Task_Control_Block
(Entry_Num
);
614 ----------------------
616 ----------------------
618 procedure Initialize_TCB
(Self_ID
: Task_ID
; Succeeded
: out Boolean) is
619 Mutex_Attr
: aliased pthread_mutexattr_t
;
620 Result
: Interfaces
.C
.int
;
621 Cond_Attr
: aliased pthread_condattr_t
;
624 Result
:= pthread_mutexattr_init
(Mutex_Attr
'Access);
625 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
632 -- Don't use, see comment in s-osinte.ads about ERRORCHECK mutexes.
633 -- Result := pthread_mutexattr_settype_np
634 -- (Mutex_Attr'Access, PTHREAD_MUTEX_ERRORCHECK_NP);
635 -- pragma Assert (Result = 0);
637 -- Result := pthread_mutexattr_setprotocol
638 -- (Mutex_Attr'Access, PTHREAD_PRIO_PROTECT);
639 -- pragma Assert (Result = 0);
641 -- Result := pthread_mutexattr_setprioceiling
642 -- (Mutex_Attr'Access, Interfaces.C.int (System.Any_Priority'Last));
643 -- pragma Assert (Result = 0);
645 Result
:= pthread_mutex_init
(Self_ID
.Common
.LL
.L
'Access,
647 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
654 Result
:= pthread_mutexattr_destroy
(Mutex_Attr
'Access);
655 pragma Assert
(Result
= 0);
657 Result
:= pthread_condattr_init
(Cond_Attr
'Access);
658 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
661 Result
:= pthread_mutex_destroy
(Self_ID
.Common
.LL
.L
'Access);
662 pragma Assert
(Result
= 0);
667 Result
:= pthread_cond_init
(Self_ID
.Common
.LL
.CV
'Access,
669 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
673 Self_ID
.Common
.LL
.Exc_Stack_Ptr
:= new Exc_Stack_T
;
674 SSL
.Set_Exc_Stack_Addr
675 (To_Address
(Self_ID
),
676 Self_ID
.Common
.LL
.Exc_Stack_Ptr
(Exc_Stack_T
'Last)'Address);
679 Result
:= pthread_mutex_destroy
(Self_ID
.Common
.LL
.L
'Access);
680 pragma Assert
(Result
= 0);
684 Result
:= pthread_condattr_destroy
(Cond_Attr
'Access);
685 pragma Assert
(Result
= 0);
692 procedure Create_Task
694 Wrapper
: System
.Address
;
695 Stack_Size
: System
.Parameters
.Size_Type
;
696 Priority
: System
.Any_Priority
;
697 Succeeded
: out Boolean)
699 Attributes
: aliased pthread_attr_t
;
700 Adjusted_Stack_Size
: Interfaces
.C
.size_t
;
701 Result
: Interfaces
.C
.int
;
703 function Thread_Body_Access
is new
704 Unchecked_Conversion
(System
.Address
, Thread_Body
);
707 if Stack_Size
= Unspecified_Size
then
708 Adjusted_Stack_Size
:= Interfaces
.C
.size_t
(Default_Stack_Size
);
710 elsif Stack_Size
< Minimum_Stack_Size
then
711 Adjusted_Stack_Size
:= Interfaces
.C
.size_t
(Minimum_Stack_Size
);
714 Adjusted_Stack_Size
:= Interfaces
.C
.size_t
(Stack_Size
);
717 -- Since the initial signal mask of a thread is inherited from the
718 -- creator, we need to set our local signal mask mask all signals
719 -- during the creation operation, to make sure the new thread is
720 -- not disturbed by signals before it has set its own Task_ID.
722 Result
:= pthread_attr_init
(Attributes
'Access);
723 pragma Assert
(Result
= 0 or else Result
= ENOMEM
);
730 Result
:= pthread_attr_setdetachstate
731 (Attributes
'Access, PTHREAD_CREATE_DETACHED
);
732 pragma Assert
(Result
= 0);
734 Result
:= pthread_attr_setstacksize
735 (Attributes
'Access, Adjusted_Stack_Size
);
736 pragma Assert
(Result
= 0);
738 -- This call may be unnecessary, not sure. ???
740 Result
:= pthread_attr_setinheritsched
741 (Attributes
'Access, PTHREAD_EXPLICIT_SCHED
);
742 pragma Assert
(Result
= 0);
744 Result
:= pthread_create
745 (T
.Common
.LL
.Thread
'Access,
747 Thread_Body_Access
(Wrapper
),
750 -- ENOMEM is a valid run-time error. Don't shut down.
752 pragma Assert
(Result
= 0
753 or else Result
= EAGAIN
or else Result
= ENOMEM
);
755 Succeeded
:= Result
= 0;
757 Result
:= pthread_attr_destroy
(Attributes
'Access);
758 pragma Assert
(Result
= 0);
761 Set_Priority
(T
, Priority
);
769 procedure Finalize_TCB
(T
: Task_ID
) is
770 Result
: Interfaces
.C
.int
;
773 procedure Free
is new
774 Unchecked_Deallocation
(Ada_Task_Control_Block
, Task_ID
);
776 procedure Free
is new Unchecked_Deallocation
777 (Exc_Stack_T
, Exc_Stack_Ptr_T
);
780 Result
:= pthread_mutex_destroy
(T
.Common
.LL
.L
'Access);
781 pragma Assert
(Result
= 0);
782 Result
:= pthread_cond_destroy
(T
.Common
.LL
.CV
'Access);
783 pragma Assert
(Result
= 0);
784 if T
.Known_Tasks_Index
/= -1 then
785 Known_Tasks
(T
.Known_Tasks_Index
) := null;
787 Free
(T
.Common
.LL
.Exc_Stack_Ptr
);
795 procedure Exit_Task
is
797 pthread_exit
(System
.Null_Address
);
804 procedure Abort_Task
(T
: Task_ID
) is
808 -- Why is this commented out ???
809 -- if T = Self and then T.Deferral_Level = 0
810 -- and then T.Pending_ATC_Level < T.ATC_Nesting_Level
812 -- raise Standard'Abort_Signal;
816 -- Interrupt Server_Tasks may be waiting on an event flag
818 if T
.Common
.State
= Interrupt_Server_Blocked_On_Event_Flag
then
819 Wakeup
(T
, Interrupt_Server_Blocked_On_Event_Flag
);
828 -- Dummy versions. The only currently working versions is for solaris
831 function Check_Exit
(Self_ID
: ST
.Task_ID
) return Boolean is
840 function Check_No_Locks
(Self_ID
: ST
.Task_ID
) return Boolean is
845 ----------------------
846 -- Environment_Task --
847 ----------------------
849 function Environment_Task
return Task_ID
is
851 return Environment_Task_ID
;
852 end Environment_Task
;
854 -------------------------
855 -- Lock_All_Tasks_List --
856 -------------------------
858 procedure Lock_All_Tasks_List
is
860 Write_Lock
(All_Tasks_L
'Access);
861 end Lock_All_Tasks_List
;
863 ---------------------------
864 -- Unlock_All_Tasks_List --
865 ---------------------------
867 procedure Unlock_All_Tasks_List
is
869 Unlock
(All_Tasks_L
'Access);
870 end Unlock_All_Tasks_List
;
876 function Suspend_Task
878 Thread_Self
: Thread_Id
) return Boolean is
889 Thread_Self
: Thread_Id
) return Boolean is
898 procedure Initialize
(Environment_Task
: Task_ID
) is
900 Environment_Task_ID
:= Environment_Task
;
902 Initialize_Lock
(All_Tasks_L
'Access, All_Tasks_Level
);
903 -- Initialize the lock used to synchronize chain of all ATCBs.
905 Enter_Task
(Environment_Task
);
910 Result
: Interfaces
.C
.int
;
912 Result
:= pthread_key_create
(ATCB_Key
'Access, null);
913 pragma Assert
(Result
= 0);
915 end System
.Task_Primitives
.Operations
;