Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1376 → Rev 1377

/demos/trunk/base/aster1.c
34,7 → 34,7
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* CVS : $Id: aster1.c,v 1.2 2003-01-07 17:10:15 pj Exp $
* CVS : $Id: aster1.c,v 1.3 2004-04-17 11:36:12 giacomo Exp $
 
this is a reduced verion of the classic Hartik demo Aster.
 
151,7 → 151,7
 
p1 = task_create("Aster",aster,&m,NULL);
if (p1 == -1) {
perror("Aster.C(main): Could not create task <aster> ...");
sys_shutdown_message("Aster.C(main): Could not create task <aster> ...");
sys_end();
}
 
158,7 → 158,7
hard_task_def_mit(m,500000);
p2 = task_create("Clock",clock,&m,NULL);
if (p2 == -1) {
perror("Aster.C(main): Could not create task <Clock> ...");
sys_shutdown_message("Aster.C(main): Could not create task <Clock> ...");
sys_end();
}
 
166,7 → 166,7
 
do {
sys_gettime(&t);
} while (t.tv_sec < 6);
} while (t.tv_sec < 10);
 
sys_end();
return 0;