~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.c

Replaced all unsigned long long with uint64_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
void *run_task(void *p);
51
51
void *timer_thread(void *p);
52
52
void scheduler(az_method use_aio);
53
 
void create_data_file(azio_stream *write_handler, unsigned long long rows);
 
53
void create_data_file(azio_stream *write_handler, uint64_t rows);
54
54
unsigned int write_row(azio_stream *s);
55
55
 
56
56
typedef struct thread_context_st thread_context_st;
57
57
struct thread_context_st {
58
58
  unsigned int how_often_to_write;
59
 
  unsigned long long counter;
 
59
  uint64_t counter;
60
60
  az_method use_aio;
61
61
  azio_stream *writer;
62
62
};
114
114
void scheduler(az_method use_aio)
115
115
{
116
116
  unsigned int x;
117
 
  unsigned long long total;
 
117
  uint64_t total;
118
118
  azio_stream writer_handle;
119
119
  thread_context_st *context;
120
120
  pthread_t mainthread;            /* Thread descriptor */
204
204
  free(context);
205
205
  azclose(&writer_handle);
206
206
 
207
 
  printf("Read %llu rows\n", total);
 
207
  printf("Read %"PRIu64" rows\n", total);
208
208
}
209
209
 
210
210
void *timer_thread(void *p)
239
239
void *run_task(void *p)
240
240
{
241
241
  thread_context_st *context= (thread_context_st *)p;
242
 
  unsigned long long count;
 
242
  uint64_t count;
243
243
  int ret;
244
244
  int error;
245
245
  azio_stream reader_handle;
285
285
  return NULL;
286
286
}
287
287
 
288
 
void create_data_file(azio_stream *write_handler, unsigned long long rows)
 
288
void create_data_file(azio_stream *write_handler, uint64_t rows)
289
289
{
290
290
  int ret;
291
 
  unsigned long long x;
 
291
  uint64_t x;
292
292
 
293
293
  if (!(ret= azopen(write_handler, TEST_FILENAME, O_CREAT|O_RDWR|O_TRUNC|O_BINARY,
294
294
                    AZ_METHOD_BLOCK)))