18,11 → 18,11 |
|
/** |
------------ |
CVS : $Id: ego.c,v 1.7 2005-01-08 14:31:38 pj Exp $ |
CVS : $Id: ego.c,v 1.6 2004-04-19 14:48:05 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.7 $ |
Last update: $Date: 2005-01-08 14:31:38 $ |
Revision: $Revision: 1.6 $ |
Last update: $Date: 2004-04-19 14:48:05 $ |
------------ |
**/ |
|
107,7 → 107,7 |
*/ |
void my_end(KEY_EVT* e) |
{ |
exit(0); |
sys_end(); |
} |
|
/******************************************************************/ |
122,7 → 122,7 |
Since the exception handler already exits from the graphic mode, |
this funcion has not to be called. For this reason: |
. we registered byebye using the flag NO_AT_ABORT |
. the exception handler exits using exit; in that way byebye is |
. the exception handler exits using sys_abort; in that way byebye is |
NOT called |
*/ |
|
155,7 → 155,8 |
pid1 = task_create("ego1", ego, &m1, NULL); |
if (pid1 == NIL) { |
sys_shutdown_message("Could not create task <ego1>"); |
exit(1); |
sys_end(); |
return 0; |
} |
|
/* ego2 creation */ |
168,7 → 169,8 |
pid2 = task_create("ego2", ego, &m2, NULL); |
if (pid2 == NIL) { |
sys_shutdown_message("Could not create task <ego2>"); |
exit(1); |
sys_end(); |
return 0; |
} |
|
/* ego3 creation */ |
181,7 → 183,8 |
pid3 = task_create("ego3", ego, &m3, NULL); |
if (pid3 == NIL) { |
sys_shutdown_message("Could not create task <ego3>"); |
exit(1); |
sys_end(); |
return 0; |
} |
|
/* and finally we activate the three threads... */ |