~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_thr_init.cc

  • Committer: Brian Aker
  • Date: 2009-05-23 17:13:03 UTC
  • mfrom: (1034.1.8 merge)
  • Revision ID: brian@gaz-20090523171303-d28xhutqic0xe2b4
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
uint32_t thd_lib_detected= 0;
40
40
 
41
41
pthread_key_t THR_KEY_mysys;
42
 
pthread_mutex_t THR_LOCK_open;
43
42
pthread_mutex_t THR_LOCK_lock;
44
43
pthread_mutex_t THR_LOCK_threads;
45
44
pthread_cond_t  THR_COND_threads;
118
117
                            PTHREAD_MUTEX_ERRORCHECK);
119
118
#endif
120
119
 
121
 
  pthread_mutex_init(&THR_LOCK_open,MY_MUTEX_INIT_FAST);
122
120
  pthread_mutex_init(&THR_LOCK_lock,MY_MUTEX_INIT_FAST);
123
121
  pthread_mutex_init(&THR_LOCK_threads,MY_MUTEX_INIT_FAST);
124
122
  pthread_cond_init(&THR_COND_threads, NULL);
166
164
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
167
165
  pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
168
166
#endif
169
 
  pthread_mutex_destroy(&THR_LOCK_open);
170
167
  pthread_mutex_destroy(&THR_LOCK_lock);
171
168
  if (all_threads_killed)
172
169
  {