Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1398 → Rev 1547

/demos/trunk/base/cabs.c
34,7 → 34,7
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* CVS : $Id: cabs.c,v 1.7 2004-04-23 07:57:33 giacomo Exp $
* CVS : $Id: cabs.c,v 1.8 2005-01-08 14:31:38 pj Exp $
*/
 
/*--------------------------------------------------------------*/
92,7 → 92,7
*/
void my_end(KEY_EVT* e)
{
sys_end();
exit(0);
}
 
/******************************************************************/
107,7 → 107,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 sys_abort; in that way byebye is
. the exception handler exits using exit; in that way byebye is
NOT called
*/
 
133,7 → 133,7
create_channel(c-'1');
}
sys_end();
exit(0);
 
return 0;
}
239,7 → 239,7
p1[i] = task_create(pname1[i], producer, &m, NULL);
if (p1[i] == NIL) {
sys_shutdown_message("Could not create task <producer>");
sys_end();
exit(1);
return;
}
task_activate(p1[i]);
253,7 → 253,7
p2[i] = task_create(pname2[i], consumer, &m, NULL);
if (p2[i] == NIL) {
sys_shutdown_message("Could not create task <consumer>");
sys_end();
exit(1);
return;
}
task_activate(p2[i]);