~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/queue_thread.cc

  • Committer: David Shrewsbury
  • Date: 2011-02-15 18:05:37 UTC
  • mto: (2207.1.1 build) (2208.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2202.
  • Revision ID: shrewsbury.dave@gmail.com-20110215180537-rvc5asdvrqnlx9jf
Major refactor of common functionality into new classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "config.h"
22
22
#include "plugin/slave/queue_thread.h"
23
 
#include "drizzled/internal/my_pthread.h"
 
23
#include <drizzled/internal/my_pthread.h>
24
24
#include <boost/thread.hpp>
25
25
 
26
26
using namespace drizzled;
32
32
{
33
33
  boost::posix_time::seconds duration(getSleepInterval());
34
34
 
35
 
  /* TODO: This is only needed b/c of plugin timing issues */
36
 
  try
37
 
  {
38
 
    boost::this_thread::sleep(duration);
39
 
  }
40
 
  catch (boost::thread_interrupted &)
41
 
  {
42
 
    return;
43
 
  }
44
 
 
45
35
  /* thread setup needed to do things like create a Session */
46
36
  internal::my_thread_init();
47
37
  boost::this_thread::at_thread_exit(&internal::my_thread_end);