Ada Programming/Attributes/'Count

Description
X'Count is an Ada attribute where X is an entry point in a protected type. This attribute returns the number of tasks currently enqueued waiting for entrance into the entry procedure.

Example
My_Protected_Type My_Entry; Get_Count( Task_Count : Natural ); My_Protected_Type; ...  Get_Count( Task_Count :  Natural ) Task_Count := My_Entry'Count; Get_Count;

Wikibook

 * Ada Programming
 * Ada Programming/Tasking

Ada Reference Manual


|Count