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
