Ada 程式設計/庫/Ada.Task_Attributes
外觀
此語言功能從 Ada 95 開始可用。
Ada.Task_Attributes 是自 Ada 95 以來 預定義語言環境 的一個單元。
-- 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;
外部示例
[編輯原始碼]- 搜尋 示例 的
Ada.Task_Attributes在: Rosetta Code, GitHub (gist), 任何 Alire 包 或 本華夏公益教科書. - 搜尋 帖子 相關
Ada.Task_Attributes在: Stack Overflow, comp.lang.ada 或 任何 Ada 相關頁面.
FSF GNAT
- 規範: a-tasatt.ads
- 主體: a-tasatt.adb
drake
