Fix nested-tasks emu test
This commit is contained in:
parent
1a67fa40d4
commit
cd2e949613
@ -30,13 +30,17 @@ main(void)
|
||||
/* Create and run the tasks, one nested into another */
|
||||
for(int i = 0; i < ntasks; i++)
|
||||
{
|
||||
instr_nanos6_handle_task_enter();
|
||||
instr_nanos6_task_create_and_execute(i + 1, typeid);
|
||||
usleep(500);
|
||||
}
|
||||
|
||||
/* End the tasks in the opposite order */
|
||||
for(int i = ntasks - 1; i >= 0; i--)
|
||||
{
|
||||
instr_nanos6_task_end(i + 1);
|
||||
instr_nanos6_handle_task_exit();
|
||||
}
|
||||
|
||||
instr_end();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user