~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.c

  • Committer: Brian Aker
  • Date: 2008-11-23 01:22:38 UTC
  • mfrom: (598.1.1 trunk)
  • Revision ID: brian@tangent.org-20081123012238-ax0w8xd30izgip5y
Merge in Monty's work for Solaris Sun Studio

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
pthread_mutex_t row_lock;
47
47
 
48
48
/* Prototypes */
49
 
void *run_task(void *p);
 
49
void *run_concurrent_task(void *p);
50
50
void *timer_thread(void *p);
51
51
void scheduler(az_method use_aio);
52
52
void create_data_file(azio_stream *write_handler, uint64_t rows);
150
150
    context[x].use_aio= use_aio;
151
151
 
152
152
    /* now you create the thread */
153
 
    if (pthread_create(&mainthread, &attr, run_task,
 
153
    if (pthread_create(&mainthread, &attr, run_concurrent_task,
154
154
                       (void *)context) != 0)
155
155
    {
156
156
      fprintf(stderr,"Could not create thread\n");
235
235
  return 0;
236
236
}
237
237
 
238
 
void *run_task(void *p)
 
238
void *run_concurrent_task(void *p)
239
239
{
240
240
  thread_context_st *context= (thread_context_st *)p;
241
241
  uint64_t count;