~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libmysql/libmysql.c

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
#ifdef HAVE_SYS_UN_H
53
53
#include <sys/un.h>
54
54
#endif
55
 
#if defined(THREAD) && !defined(__WIN__)
56
55
#include <my_pthread.h>                         /* because of signal()  */
57
 
#endif
58
56
#ifndef INADDR_NONE
59
57
#define INADDR_NONE     -1
60
58
#endif
173
171
       result= init_embedded_server(argc, argv, groups);
174
172
#endif
175
173
  }
176
 
#ifdef THREAD
177
174
  else
178
175
    result= (int)my_thread_init();         /* Init if new thread */
179
 
#endif
180
176
  return result;
181
177
}
182
178
 
237
233
 
238
234
my_bool STDCALL mysql_thread_init()
239
235
{
240
 
#ifdef THREAD
241
236
  return my_thread_init();
242
 
#else
243
 
  return 0;
244
 
#endif
245
237
}
246
238
 
247
239
void STDCALL mysql_thread_end()
248
240
{
249
 
#ifdef THREAD
250
241
  my_thread_end();
251
 
#endif
252
242
}
253
243
 
254
244
 
1149
1139
 
1150
1140
uint STDCALL mysql_thread_safe(void)
1151
1141
{
1152
 
#ifdef THREAD
1153
1142
  return 1;
1154
 
#else
1155
 
  return 0;
1156
 
#endif
1157
1143
}
1158
1144
 
1159
1145