Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1690 → Rev 1689

/demos/trunk/base/condtest.c
61,7 → 61,7
 
PID p0,p1,p2,p3;
 
TASK J0()
TASK j0()
{
cprintf("J0: before locking m0\n");
mutex_lock(&m0);
77,7 → 77,7
}
 
 
TASK J1()
TASK j1()
{
cprintf("J1: before locking m0\n");
mutex_lock(&m0);
93,7 → 93,7
}
 
 
TASK J2()
TASK j2()
{
 
cprintf("J2: started, waiting t=0.5 sec\n");
134,7 → 134,7
cprintf("J3: unlocked m0 by the cleanup function\n");
}
 
TASK J3()
TASK j3()
{
cprintf("J3: before locking m0\n");
mutex_lock(&m0);
167,19 → 167,19
 
nrt_task_default_model(m);
nrt_task_def_group(m,1);
p0 = task_create("J0", J0, &m, NULL);
p0 = task_create("J0", j0, &m, NULL);
if (p0 == NIL)
{ cprintf("Can't create J0 task...\n"); return 1; }
 
p1 = task_create("J1", J1, &m, NULL);
p1 = task_create("J1", j1, &m, NULL);
if (p1 == NIL)
{ cprintf("Can't create J1 task...\n"); return 1; }
 
p2 = task_create("J2", J2, &m, NULL);
p2 = task_create("J2", j2, &m, NULL);
if (p2 == NIL)
{ cprintf("Can't create J2 task...\n"); return 1; }
 
p3 = task_create("J3", J3, &m, NULL);
p3 = task_create("J3", j3, &m, NULL);
if (p3 == NIL)
{ cprintf("Can't create J3 task...\n"); return 1; }