tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
11
Task/Program-termination/Ada/program-termination-2.ada
Normal file
11
Task/Program-termination/Ada/program-termination-2.ada
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
procedure Main is
|
||||
-- Create as many task objects as your program needs
|
||||
begin
|
||||
-- whatever logic is required in your Main procedure
|
||||
if some_condition then
|
||||
-- for each task created by the Main procedure
|
||||
The_task.Stop;
|
||||
-- end the Main procedure
|
||||
return; -- actually, this is not needed
|
||||
end if;
|
||||
end Main;
|
||||
Loading…
Add table
Add a link
Reference in a new issue