~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleslap.cc

  • Committer: Monty Taylor
  • Date: 2008-09-14 00:14:42 UTC
  • mto: This revision was merged to the branch mainline in revision 387.
  • Revision ID: monty@inaugust.com-20080914001442-09k3yuht4gopk0t6
Reworked drizzle_escape_string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
 
320
320
  MY_INIT(argv[0]);
321
321
 
322
 
  if (!(drizzle_thread_safe()))
323
 
    fprintf(stderr, "This application was compiled incorrectly. Please recompile with thread support.\n");
324
 
 
325
322
  load_defaults("my",load_default_groups,&argc,&argv);
326
323
  defaults_argv=argv;
327
324
  if (get_options(&argc,&argv))
1963
1960
  struct timespec abstime;
1964
1961
 
1965
1962
 
1966
 
 
1967
 
  if (drizzle_thread_init())
1968
 
  {
1969
 
    fprintf(stderr,"%s: drizzle_thread_init() failed.\n",
1970
 
            my_progname);
1971
 
    exit(1);
1972
 
  }
1973
 
 
1974
1963
  /*
1975
1964
    We lock around the initial call in case were we in a loop. This
1976
1965
    also keeps the value properly syncronized across call threads.
1992
1981
  timer_alarm= false;
1993
1982
  pthread_mutex_unlock(&timer_alarm_mutex);
1994
1983
 
1995
 
  drizzle_thread_end();
1996
1984
  return(0);
1997
1985
}
1998
1986
 
2007
1995
  statement *ptr;
2008
1996
  thread_context *con= (thread_context *)p;
2009
1997
 
2010
 
  if (drizzle_thread_init())
2011
 
  {
2012
 
    fprintf(stderr,"%s: drizzle_thread_init() failed.\n",
2013
 
            my_progname);
2014
 
    exit(1);
2015
 
  }
2016
 
 
2017
1998
  pthread_mutex_lock(&sleeper_mutex);
2018
1999
  while (master_wakeup)
2019
2000
  {
2139
2120
 
2140
2121
  my_free(con, MYF(0));
2141
2122
 
2142
 
  drizzle_thread_end();
2143
2123
  return(0);
2144
2124
}
2145
2125