~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/concurrency_test.cc

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; version 2 of the License.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 
 */
19
 
 
20
1
/*
21
2
  Just a test application for threads.
22
3
  */
23
 
 
24
 
#include "config.h"
25
 
 
26
4
#include "azio.h"
27
 
#include "drizzled/option.h"
 
5
#include <mysys/my_getopt.h>
28
6
#include <stdio.h>
29
7
#include <stdlib.h>
30
8
#include <sys/types.h>
102
80
{
103
81
 
104
82
  unsigned int method;
105
 
  drizzled::internal::my_init();
 
83
  my_init();
106
84
 
107
85
  MY_INIT(argv[0]);
108
86
 
192
170
    if (pthread_create(&mainthread, &attr, timer_thread,
193
171
                       (void *)&opt_timer_length) != 0)
194
172
    {
195
 
      fprintf(stderr,"%s: Could not create timer thread\n", drizzled::internal::my_progname);
 
173
      fprintf(stderr,"%s: Could not create timer thread\n", my_progname);
196
174
      exit(1);
197
175
    }
198
176
  }