Ada 程式設計/庫/Ada.Containers.Unbounded_Synchronized_Queues
外觀
此語言特性在 Ada 2012 中引入。
Ada.Containers.Unbounded_Synchronized_Queues 是自 Ada 2012 以來 預定義語言環境 的一個單元。
-- 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 -- -------------------------------------------------------------------------withSystem;withAda.Containers.Synchronized_Queue_Interfaces;genericwithpackageQueue_InterfacesisnewAda.Containers.Synchronized_Queue_Interfaces (<>); Default_Ceiling : System.Any_Priority := System.Priority'Last;packageAda.Containers.Unbounded_Synchronized_QueuesispragmaPreelaborate(Unbounded_Synchronized_Queues);packageImplementationis-- not specified by the languageendImplementation;protectedtypeQueue (Ceiling : System.Any_Priority := Default_Ceiling)withPriority => CeilingisnewQueue_Interfaces.QueuewithoverridingentryEnqueue (New_Item :inQueue_Interfaces.Element_Type);overridingentryDequeue (Element :outQueue_Interfaces.Element_Type);overridingfunctionCurrent_UsereturnCount_Type;overridingfunctionPeak_UsereturnCount_Type;private-- not specified by the languageendQueue;private-- not specified by the languageendAda.Containers.Unbounded_Synchronized_Queues;
外部示例
[編輯原始碼]- 在以下位置搜尋
Ada.Containers.Unbounded_Synchronized_Queues的示例:Rosetta 程式碼,GitHub (gists),任何 Alire 包 或 此華夏公益教科書。 - 在以下位置搜尋與
Ada.Containers.Unbounded_Synchronized_Queues相關的帖子:堆疊溢位,comp.lang.ada 或 任何與 Ada 相關的頁面。
FSF GNAT
- 規範:a-cusyqu.ads
- 主體:a-cusyqu.adb
drake
