~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.c

  • Committer: Brian Aker
  • Date: 2008-07-26 04:51:46 UTC
  • mfrom: (202.1.25 codestyle)
  • Revision ID: brian@tangent.org-20080726045146-ax7ofn8aqnkycjl3
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
  if (argc > 1)
89
89
    exit(1);
90
90
 
91
 
  if (!(mysql_thread_safe()))
 
91
  if (!(drizzle_thread_safe()))
92
92
      fprintf(stderr, "This application was compiled incorrectly. Please recompile with thread support.\n");
93
93
 
94
94
  srandom(time(NULL));
216
216
  time_t *timer_length= (time_t *)p;
217
217
  struct timespec abstime;
218
218
 
219
 
  if (mysql_thread_init())
 
219
  if (drizzle_thread_init())
220
220
  {
221
 
    fprintf(stderr,"%s: mysql_thread_init() failed.\n",
 
221
    fprintf(stderr,"%s: drizzle_thread_init() failed.\n",
222
222
            my_progname);
223
223
    exit(1);
224
224
  }
244
244
  timer_alarm= false;
245
245
  pthread_mutex_unlock(&timer_alarm_mutex);
246
246
 
247
 
  mysql_thread_end();
 
247
  drizzle_thread_end();
248
248
 
249
249
  return 0;
250
250
}
257
257
  int error;
258
258
  azio_stream reader_handle;
259
259
 
260
 
  if (mysql_thread_init())
 
260
  if (drizzle_thread_init())
261
261
  {
262
 
    fprintf(stderr,"%s: mysql_thread_init() failed.\n", my_progname);
 
262
    fprintf(stderr,"%s: drizzle_thread_init() failed.\n", my_progname);
263
263
    exit(1);
264
264
  }
265
265
 
301
301
  pthread_mutex_unlock(&counter_mutex);
302
302
  azclose(&reader_handle);
303
303
 
304
 
  mysql_thread_end();
 
304
  drizzle_thread_end();
305
305
 
306
306
  return NULL;
307
307
}