Ada 编程/库/Ada.Containers.Bounded_Synchronized_Queues
外观
此语言功能在 Ada 2012 中引入。
Ada.Containers.Bounded_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_Capacity : Count_Type; Default_Ceiling : System.Any_Priority := System.Priority'Last;packageAda.Containers.Bounded_Synchronized_QueuesispragmaPreelaborate(Bounded_Synchronized_Queues);packageImplementationis-- not specified by the languageendImplementation;protectedtypeQueue (Capacity : Count_Type := Default_Capacity; 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.Bounded_Synchronized_Queues;
外部示例
[编辑源代码]- 搜索
Ada.Containers.Bounded_Synchronized_Queues在以下位置的 示例:Rosetta Code,GitHub (gists),任何 Alire 包 或 此。 - 搜索与
Ada.Containers.Bounded_Synchronized_Queues相关的 帖子:Stack Overflow,comp.lang.ada 或 任何与 Ada 相关的页面。
FSF GNAT
- 规范:a-cbsyqu.ads
- 主体:a-cbsyqu.adb
