Hello:

I have five tasks (v1), that they have to run at (periodic) :
1º - 10ms.
2ª - 70ms.
3º - 60ms.
4º - 100ms.
5 - 100ms.

But on the initialization, they have to do synchronized, and when all 
tasks are ready, all tasks enter in a loop for.
The pattern of this tasks is,actualy:

task_A(){

        initialization{
                ...
                syncronization;
                ...
                }
         IAmReady();
         waitForAllReady();
         for (;;){
             ....
             ....
             DoSleep (xms);
         }
}

int init_module(void){
        /*Only the first task*/  rtl_set_oneshot_mode();
        rt_task_ipc_init(&taskA, task_A,1,3000,1);
        rt_task_make_periodic(MAKE_RT_TASK(&taskA),rt_get_time(),period);
        return 0;
}

I want do, that when All tasks is ready, switch to mode_pririodic with 
their respectives period.

Escuse me, for my poor English.
-- 
vi vs emacs: Es como el papel del water: o lo pones con el papel colgando por
delante o por detrás, pero siempre lo pondrás por el mismo lado.
                                (Xavier González Onrubia)

====================================================================
Mario Teijeiro Otero           mailto:asimovi at teleline dot es         
Powered by Hispafuentes 6.1    clave: correo con Asunto: "[PGPKEY]"
Usr. Reg. 122438               o en http://www.terra.es/personal2/asimovi 
====================================================================
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to