AdaCL.Queue

Queues for Multitasking.

More...

Entities

Record types

Protected_Object

Subprograms

Create_Protect

Generic instantiations

Protected_Holder (generic instantiation)

Nested packages

Interfaces
Protect

Description

A queue specifially designed for multi process use. It addition to Ada.Containers.Synchronized_Queue_Interfaces it offeres and end of queue flag, wait for all elements processed and premature abort command. @formal Element_Type This is the type being contained in the container. @formal Null_Element Null element used as placeholder if queue is empty. A Null_Element can be added

1to the queue and will be processed like any other element.

@formal Default_Maximum_Size default maxiumum size of queue. @formal "=" Equality for elements.

Protected_Object [source]

322 subtype Protected_Object is Protected_Holder.Object;

Create_Protect [source]

328 function Create_Protect
329 (Maximum_Size : in Ada.Containers.Count_Type := Default_Maximum_Size) return Protected_Object is
330 (Protected_Holder.Create (new Protect.Object (Maximum_Size)));

creates a new protected queue. Use this method to make use of the reference counting mechanism.

Maximum_Size of type Count_Type

of the queue;

Return value

Protected_Holder (generic instantiation) [source]

321package Protected_Holder is new AdaCL.Pointer.Holder (Protect.Object);

Instantiation of AdaCL.Pointer.Holder