Ada Programming/Libraries/System.Multiprocessors.Dispatching_Domains
Appearance
This language feature has been introduced in Ada 2012.
System.Multiprocessors.Dispatching_Domains is a unit of the Predefined Language Environment since Ada 2012.
Specification
[edit | edit source]-- Standard Ada library specification -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------with
Ada.Real_Time;with
Ada.Task_Identification;package
System.Multiprocessors.Dispatching_Domainsis
Dispatching_Domain_Error :exception
;type
Dispatching_Domain (<>)is
limited
private
; System_Dispatching_Domain :constant
Dispatching_Domain;function
Create (First : CPU; Last : CPU_Range)return
Dispatching_Domain;function
Get_First_CPU (Domain : Dispatching_Domain)return
CPU;function
Get_Last_CPU (Domain : Dispatching_Domain)return
CPU_Range;type
CPU_Setis
array
(CPUrange
<>)of
Boolean;function
Create (Set : CPU_Set)return
Dispatching_Domain;function
Get_CPU_Set (Domain : Dispatching_Domain)return
CPU_Set;function
Get_Dispatching_Domain (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task)return
Dispatching_Domain;procedure
Assign_Task (Domain :in
out
Dispatching_Domain; CPU :in
CPU_Range := Not_A_Specific_CPU; T :in
Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task);procedure
Set_CPU (CPU :in
CPU_Range; T :in
Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task);function
Get_CPU (T : Ada.Task_Identification.Task_Id := Ada.Task_Identification.Current_Task)return
CPU_Range;procedure
Delay_Until_And_Set_CPU (Delay_Until_Time :in
Ada.Real_Time.Time; CPU :in
CPU_Range);private
-- not specified by the languageend
System.Multiprocessors.Dispatching_Domains;
See also
[edit | edit source]Wikibook
[edit | edit source]External examples
[edit source]- Search for examples of
System.Multiprocessors.Dispatching_Domains
in: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
System.Multiprocessors.Dispatching_Domains
in: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
[edit | edit source]Ada 2012
[edit | edit source]Open-Source Implementations
[edit | edit source]FSF GNAT
- Specification: s-mudido.ads
- Body: s-mudido.adb
drake
- Specification: tasking/s-mudido.ads