crete an idle task to run when theres ... umm. .. nothing to do ..
[AROS.git] / test / library / usereltest.c
blob7386ac4e63b0e9661a45a6e479471b65825a4963
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/dos.h>
8 #include <proto/pertask.h>
9 #include <proto/userel.h>
11 #include "pertaskvalue.h"
13 int main (int argc, char ** argv)
15 IPTR vec[3] = {1, 2, 0};
17 vec[2] = DummyAdd(vec[0], vec[1]);
19 VPrintf((STRPTR)"%ld+%ld=%ld\n",vec);
21 vec[0] = (IPTR)PertaskGetParentBase();
23 VPrintf((STRPTR)"ParentBase = %ld\n",vec);
25 Printf("104 205 306 407:\n");
26 DummyPrint4(101, 202, 303, 404);
28 pertaskvalue = 1;
29 Printf("\n1 == %ld ?\n", PertaskGetValue());
30 Printf("1 == %ld ?\n", GetChildValue());
32 PertaskSetValue(2);
33 Printf("\n2 == %ld ?\n", GetChildValue());
35 Flush (Output ());
37 return 0;