~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.c

Merged in Jay's tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
unsigned int master_wakeup;
42
42
pthread_mutex_t sleeper_mutex;
43
43
pthread_cond_t sleep_threshhold;
44
 
static my_bool timer_alarm= FALSE;
 
44
static my_bool timer_alarm= false;
45
45
pthread_mutex_t timer_alarm_mutex;
46
46
pthread_cond_t timer_alarm_threshold;
47
47
 
168
168
  {
169
169
    time_t opt_timer_length= DEFAULT_EXECUTE_SECONDS;
170
170
    pthread_mutex_lock(&timer_alarm_mutex);
171
 
    timer_alarm= TRUE;
 
171
    timer_alarm= true;
172
172
    pthread_mutex_unlock(&timer_alarm_mutex);
173
173
 
174
174
    if (pthread_create(&mainthread, &attr, timer_thread, 
241
241
  pthread_mutex_unlock(&timer_alarm_mutex);
242
242
 
243
243
  pthread_mutex_lock(&timer_alarm_mutex);
244
 
  timer_alarm= FALSE;
 
244
  timer_alarm= false;
245
245
  pthread_mutex_unlock(&timer_alarm_mutex);
246
246
 
247
247
  mysql_thread_end();
291
291
    }
292
292
 
293
293
    /* If the timer is set, and the alarm is not active then end */
294
 
    if (timer_alarm == FALSE)
 
294
    if (timer_alarm == false)
295
295
      break;
296
296
  }
297
297