Index

Package: Protected_Containers

Description

package Alog.Protected_Containers is
Alog Protected Containers. This package provides protected containers which are safe for concurrent access.

Tasks & Protected

Log_Request_List (protected type)

Protected variant of a log request list. This list holds log request objects and is safe for concurrent access. It operates in FIFO-Mode.

Types

Log_Request_Storage

type Log_Request_Storage is private;

Subprograms & Entries

Log_Request_List. Put

procedure Put 
(Element: Log_Request.Instance);
Put an element at the end of the request list.

Log_Request_List. Get (abstract)

entry Get 
(Element: out Log_Request.Instance);
Get the first element from the list (and delete it).

Log_Request_List. Done

procedure Done;
Signal successfull processing of request previously gotten from list.

Log_Request_List. All_Done (abstract)

entry All_Done;
This procedure blocks until the list is empty and there are no pending requests. A requests is pending when it is taken off the list via Get but it's successfull processing has not been signaled back via the procedure Done.

Log_Request_List. Clear

procedure Clear;
Clear the request list by deleting all log requests.

Log_Request_List. Length

function Length return Natural;
Return the number of elements in the list.

Log_Request_List. Pending

function Pending return Natural;
Return the number of pending requests.