More fixes to backbuffer code so that it uses layers correctly
[AROS.git] / test / threads / cleanupatexit.c
blob7b713d6998e13c7de575ecfc8c647e116914d113
1 #include <libraries/thread.h>
2 #include <proto/thread.h>
3 #include <proto/dos.h>
4 #include <stdio.h>
6 void *thread_main(void *data) {
7 int i;
9 printf("thread starting\n");
11 for (i = 0; i < 10; i++) {
12 printf("count: %d\n", i);
13 Delay(25);
16 printf("thread exiting\n");
18 return NULL;
21 int main (int argc, char **argv) {
22 CreateThread(thread_main, NULL);
23 Delay(100);
24 return 0;