~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/concurrency_test.cc

  • Committer: Monty Taylor
  • Date: 2010-11-08 18:26:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1931.
  • Revision ID: mordred@inaugust.com-20101108182608-lci86acl7r53sbi3
Replaced auto_ptr with scoped_ptr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#define snprintf _snprintf
46
46
#endif
47
47
 
 
48
#include <boost/scoped_ptr.hpp>
 
49
 
48
50
#include "azio.h"
49
51
 
50
52
#define DEFAULT_INITIAL_LOAD 10000
137
139
{
138
140
  unsigned int x;
139
141
  uint64_t total;
140
 
  std::auto_ptr<azio_stream> writer_handle_ap(new azio_stream);
 
142
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
141
143
  azio_stream &writer_handle= *writer_handle_ap.get();
142
144
  thread_context_st *context;
143
145
  pthread_t mainthread;            /* Thread descriptor */
265
267
  uint64_t count;
266
268
  int ret;
267
269
  int error;
268
 
  std::auto_ptr<azio_stream> reader_handle_ap(new azio_stream);
 
270
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
269
271
  azio_stream &reader_handle= *reader_handle_ap.get();
270
272
 
271
273
  if (!(ret= azopen(&reader_handle, TEST_FILENAME, O_RDONLY,