~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_pthread.h

Merge Stewart's dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
 
144
144
        /* READ-WRITE thread locking */
145
145
 
146
 
#ifndef HAVE_THR_SETCONCURRENCY
147
 
#define thr_setconcurrency(A) pthread_dummy(0)
148
 
#endif
149
146
#if !defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE) && ! defined(pthread_attr_setstacksize)
150
147
#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
151
148
#endif
157
154
#else
158
155
#define MY_MUTEX_INIT_FAST   NULL
159
156
#endif
160
 
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
161
 
extern pthread_mutexattr_t my_errorcheck_mutexattr;
162
 
#define MY_MUTEX_INIT_ERRCHK &my_errorcheck_mutexattr
163
 
#else
164
 
#define MY_MUTEX_INIT_ERRCHK   NULL
165
 
#endif
166
157
 
167
158
#ifndef ESRCH
168
159
/* Define it to something */
179
170
 
180
171
/* All thread specific variables are in the following struct */
181
172
 
182
 
#define THREAD_NAME_SIZE 10
183
173
/*
184
174
  Drizzle can survive with 32K, but some glibc libraries require > 128K stack
185
175
  to resolve hostnames. Also recursive stored procedures needs stack.