This is the initial commit.
[keystone-rtos/netapi.git] / ti / runtime / netapi / OLD / synchtest.c
1 int spot=0;
2 main()
3 {
4 int val;
5 int i;
6 for(i=0;i<10;i++) {
7 val=__sync_fetch_and_add_4(&spot, 1);
8 printf(" val = %d %d\n",val,spot);
9 }
10 }