~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/signal_handler/signal_handler.cc

  • Committer: Lee Bieber
  • Date: 2011-04-14 02:59:01 UTC
  • mfrom: (2275.3.4 cache)
  • mto: This revision was merged to the branch mainline in revision 2278.
  • Revision ID: kalebral@gmail.com-20110414025901-o0oici0e4ngtqz91
Merge Olaf - Refactor Thread

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    (Asked MontyW over the phone about this.) -Brian
164
164
 
165
165
  */
166
 
  session::Cache::singleton().mutex().lock();
167
 
  session::Cache::singleton().mutex().unlock();
 
166
  session::Cache::mutex().lock();
 
167
  session::Cache::mutex().unlock();
168
168
  COND_thread_count.notify_all();
169
169
 
170
170
  if (pthread_sigmask(SIG_BLOCK, &set, NULL))
229
229
    drizzled::plugin::Daemon("Signal Handler")
230
230
  {
231
231
    // @todo fix spurious wakeup issue
232
 
    boost::mutex::scoped_lock scopedLock(session::Cache::singleton().mutex());
 
232
    boost::mutex::scoped_lock scopedLock(session::Cache::mutex());
233
233
    thread= boost::thread(signal_hand);
234
234
    signal_thread= thread.native_handle();
235
235
    COND_thread_count.wait(scopedLock);