Added exithandlers so that the examples can be run as loadable (and unloadble) modules
This commit is contained in:
parent
4fa44208eb
commit
c3457e82a4
9 changed files with 76 additions and 14 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: test-trickle.c,v 1.2 2007/03/21 23:25:16 adamdunkels Exp $
|
||||
* $Id: test-trickle.c,v 1.3 2007/03/25 12:10:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -61,6 +61,7 @@ static struct trickle_conn trickle;
|
|||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(test_trickle_process, ev, data)
|
||||
{
|
||||
PROCESS_EXITHANDLER(trickle_close(&trickle);)
|
||||
PROCESS_BEGIN();
|
||||
|
||||
/* log_message("Trickle", "running");*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue