~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Brian Aker
  • Date: 2010-09-16 00:58:27 UTC
  • mfrom: (1766.1.2 trunk)
  • Revision ID: brian@tangent.org-20100916005827-f339tulsvm8ww358
Merge of Brian refactor + fix for Solaris find.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
 
126
126
MultiThreadScheduler::~MultiThreadScheduler()
127
127
{
128
 
  LOCK_thread_count.lock();
 
128
  boost::mutex::scoped_lock scopedLock(LOCK_thread_count);
129
129
  while (thread_count)
130
130
  {
131
 
    pthread_cond_wait(COND_thread_count.native_handle(), LOCK_thread_count.native_handle());
 
131
    COND_thread_count.wait(scopedLock);
132
132
  }
133
133
 
134
 
  LOCK_thread_count.unlock();
135
134
  (void) pthread_attr_destroy(&attr);
136
135
}
137
136