#include "thread.c"

/* what are we doing */
char *things = "uncontested locks taken";			
/* how many have we done */
unsigned long things_done=0;

/* globals */
unsigned long *locks = &things_done;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;

void do_test(void) {

  while ( 1 ) {
    pthread_mutex_lock(&mutex);
    (*locks)++;
    pthread_mutex_unlock(&mutex);
  }
  
}

