~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

Viewing changes to plugin/archive/concurrency_test.cc

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#ifndef __WIN__
38
38
#include <sys/wait.h>
39
39
#endif
 
40
#include <memory>
40
41
 
41
42
#ifdef __WIN__
42
43
#define srandom  srand
44
45
#define snprintf _snprintf
45
46
#endif
46
47
 
 
48
#include <boost/scoped_ptr.hpp>
 
49
 
47
50
#include "azio.h"
48
51
 
49
52
#define DEFAULT_INITIAL_LOAD 10000
136
139
{
137
140
  unsigned int x;
138
141
  uint64_t total;
139
 
  azio_stream writer_handle;
 
142
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
 
143
  azio_stream &writer_handle= *writer_handle_ap.get();
140
144
  thread_context_st *context;
141
145
  pthread_t mainthread;            /* Thread descriptor */
142
146
  pthread_attr_t attr;          /* Thread attributes */
263
267
  uint64_t count;
264
268
  int ret;
265
269
  int error;
266
 
  azio_stream reader_handle;
 
270
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
 
271
  azio_stream &reader_handle= *reader_handle_ap.get();
267
272
 
268
273
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY,
269
274
                    context->use_aio)))