#include "thread.c"

/* what are we doing */
char *things = "threads created";			
/* how many have we done */
unsigned long things_done=0;

/* threads */
pthread_t thread_id;
void *thread(void*);

/* globals */
unsigned long *threads_created = &things_done;

void *thread(void *arg) {
  (*threads_created)++;
  return 0;
}

void do_test(void) {

  pthread_t th1;

  while ( 1 ) {
    pthread_create(&th1, NULL, thread, (void*)NULL );
    pthread_join(th1, (void*)NULL);
  }
  
}

