< Ada Programming < Libraries

Ada. Time-tested, safe and secure.
This language feature is only available from Ada 2005 on. Ada.Execution_Time.Group_Budgets is a unit of the Predefined Language Environment since Ada 2005.
Specification
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- 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 -- -------------------------------------------------------------------------withSystem;packageAda.Execution_Time.Group_BudgetsistypeGroup_Budgetistaggedlimitedprivate;typeGroup_Budget_Handlerisaccessprotectedprocedure(GB :inoutGroup_Budget);typeTask_Arrayisarray(Positiverange<>)ofAda.Task_Identification.Task_Id; Min_Handler_Ceiling :constantSystem.Any_Priority := implementation_defined;procedureAdd_Task (GB :inoutGroup_Budget; T :inAda.Task_Identification.Task_Id);procedureRemove_Task (GB :inoutGroup_Budget; T :inAda.Task_Identification.Task_Id);functionIs_Member (GB :inGroup_Budget; T :inAda.Task_Identification.Task_Id)returnBoolean;functionIs_A_Group_Member (T :inAda.Task_Identification.Task_Id)returnBoolean;functionMembers (GB :inGroup_Budget)returnTask_Array;procedureReplenish (GB :inoutGroup_Budget; To :inAda.Real_Time.Time_Span);procedureAdd (GB :inoutGroup_Budget; Interval :inAda.Real_Time.Time_Span);functionBudget_Has_Expired (GB :inGroup_Budget)returnBoolean;functionBudget_Remaining (GB :inGroup_Budget)returnAda.Real_Time.Time_Span;procedureSet_Handler (GB :inoutGroup_Budget; Handler :inGroup_Budget_Handler);functionCurrent_Handler (GB :inGroup_Budget)returnGroup_Budget_Handler;procedureCancel_Handler (GB :inoutGroup_Budget; Cancelled :outBoolean); Group_Budget_Error :exception;privatepragmaImport (Ada, Group_Budget);endAda.Execution_Time.Group_Budgets;
See also
Wikibook
External examples
- Search for examples of
Ada.Execution_Time.Group_Budgetsin: Rosetta Code, GitHub or this Wikibook. - Search for any post related to
Ada.Execution_Time.Group_Budgetsin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 2005
Ada 2012
Open-Source Implementations
FSF GNAT
- Specification: a-etgrbu.ads
drake
- Specification: tasking/a-etgrbu.ads
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.