~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_thr_init.cc

  • Committer: Brian Aker
  • Date: 2009-02-10 09:21:03 UTC
  • Revision ID: brian@tangent.org-20090210092103-i44bbn7xd6xnyoco
Solaris performanc fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
pthread_mutex_t THR_LOCK_open;
43
43
pthread_mutex_t THR_LOCK_lock;
44
44
pthread_mutex_t THR_LOCK_threads;
45
 
pthread_mutex_t THR_LOCK_time;
46
45
pthread_cond_t  THR_COND_threads;
47
46
uint32_t            THR_thread_count= 0;
48
47
uint32_t                my_thread_end_wait_time= 5;
122
121
  pthread_mutex_init(&THR_LOCK_open,MY_MUTEX_INIT_FAST);
123
122
  pthread_mutex_init(&THR_LOCK_lock,MY_MUTEX_INIT_FAST);
124
123
  pthread_mutex_init(&THR_LOCK_threads,MY_MUTEX_INIT_FAST);
125
 
  pthread_mutex_init(&THR_LOCK_time,MY_MUTEX_INIT_FAST);
126
124
  pthread_cond_init(&THR_COND_threads, NULL);
127
125
  if (my_thread_init())
128
126
  {
172
170
#endif
173
171
  pthread_mutex_destroy(&THR_LOCK_open);
174
172
  pthread_mutex_destroy(&THR_LOCK_lock);
175
 
  pthread_mutex_destroy(&THR_LOCK_time);
176
173
  if (all_threads_killed)
177
174
  {
178
175
    pthread_mutex_destroy(&THR_LOCK_threads);