Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Ada Programming/Libraries/Ada.Containers.Bounded Synchronized Queues

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Ada.Containers.Bounded_Synchronized_Queues __TOC__ Ada Containers Bounded_Synchronized_Queues is a unit of the Predefined Language Environment since Ada 2012. Specification 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 ------------------------------------------------------------------------- with System; with Ada Containers Synchronized_Queue_Interfaces; generic with package Queue_Interfaces is new Adadot .Containersdot .Synchronized_Queue_Interfaces (box <>); Default_Capacity : Count_Type; Default_Ceiling : Systemdot .Any_Priority := Systemdot .Priority'Last; package Ada Containers Bounded_Synchronized_Queues is pragma Preelaborate(Bounded_Synchronized_Queues); package Implementation is not specified by the language end Implementation; protected type Queue (Capacity : Count_Type := Default_Capacity; Ceiling : Systemdot .Any_Priority := Default_Ceiling) with Priority arrow => Ceiling is new Queue_Interfacesdot .Queue with overriding entry Enqueue (New_Item : in Queue_Interfacesdot .Element_Type); overriding entry Dequeue (Element : out Queue_Interfacesdot .Element_Type); overriding function Current_Use return Count_Type; overriding function Peak_Use return Count_Type; private not specified by the language end Queue; private not specified by the language end Adadot .Containersdot .Bounded_Synchronized_Queues; See also Wikibook Ada Programming/Libraries/Ada Ada Programming/Libraries/Ada.Containers Ada Reference Manual Ada 2012 A 18 29 The Generic Package Containers.Bounded_Synchronized_Queues Open-Source Implementations a-cbsyqu.ads a-cbsyqu.adb