Index

Package: Completions

Description

package Completions is
The Completions package provides the Completion object, which notifies threads when a pending operation is complete.

Tasks & Protected

Completion (protected type)

A protected state object useful for notifying threads when an operation is complete.

Types

A_Completion

type A_Completion is access all Completion;

Subprograms & Entries

Completion. Notify_Complete

procedure Notify_Complete;
Notifies the object that the state is complete. This will unblock all threads blocked on the Wait entry.

Completion. Is_Complete

function Is_Complete return Boolean;
Checks the state of the object without waiting for it to be complete.

Completion. Wait (abstract)

entry Wait;
Blocks the caller until the state becomes complete.

Delete

procedure Delete
( obj: in out A_Completion );
Deletes the Completion.