Ada Programming/Libraries/Ada.Task_Attributes
This language feature is available from Ada 95 on.
Ada.Task_Attributes is a unit of the Predefined Language Environment since Ada 95.
Specification
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- 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 -- -------------------------------------------------------------------------withAda.Task_Identification;useAda.Task_Identification;generictypeAttributeisprivate; Initial_Value :inAttribute;packageAda.Task_AttributesistypeAttribute_HandleisaccessallAttribute;functionValue (T : Task_Id := Current_Task)returnAttribute;functionReference (T : Task_Id := Current_Task)returnAttribute_Handle;procedureSet_Value (Val :inAttribute; T :inTask_Id := Current_Task);procedureReinitialize (T :inTask_Id := Current_Task);endAda.Task_Attributes;
See also
Wikibook
External examples
- Search for examples of
Ada.Task_Attributesin: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
Ada.Task_Attributesin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 95
Ada 2005
Ada 2012
Open-Source Implementations
FSF GNAT
- Specification: a-tasatt.ads
- Body: a-tasatt.adb
drake
- Specification: tasking/a-tasatt.ads
- Body: tasking/a-tasatt.adb