Hello,
You can restart your process with process_exit() and process_start().
The process can also be paused in a few different ways, depending on how
you want to re-enable it. One option is to use
PROCESS_WAIT_EVENT_UNTIL(ev == PROCESS_EVENT_CONTINUE) in the process.
The process will be woken up when calling process_post(&my_process,
PROCESS_EVENT_CONTINUE, NULL);
Nicolas
Ricardo Franco Mendoza García skrev:
-------------------------------------------------------------------------> Hi everyone in the list.
>
> I am new to Contiki, but I have read a lot about it last days.
> Nevertheless, I haven't been able to find the answer to the question
> about restarting a process, so I hope you can help me.
>
> Assuming that I have a process called "my_process", can I do:
>
> /*******************************************/
>
> process_start(&my_process, NULL);
>
> ... some code ...
>
> process_exit(&my_process);
>
> ... some code ...
>
> process_start(&my_process, NULL);
>
> /******************************************/
>
> ?
>
> If not possible, is there any way to "pause" a process indefinitely
> (and then to resume it)?
>
> Any hint would be very welcome.
>
> Regards...
>
> Franco.
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Contiki-developers mailing list
Contiki-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers