~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/pool_of_threads.h

  • Committer: Brian Aker
  • Date: 2010-09-15 20:24:31 UTC
  • mto: (1766.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1767.
  • Revision ID: brian@tangent.org-20100915202431-wbrrl4vg6rzjvdiu
Adding opt for optional schedulers and making them --plugin-add only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
private:
43
43
  pthread_attr_t attr;
44
44
 
45
 
  pthread_mutex_t LOCK_session_add;    /* protects sessions_need_adding */
 
45
  boost::mutex LOCK_session_add;    /* protects sessions_need_adding */
46
46
  boost::mutex LOCK_session_kill;    /* protects sessions_to_be_killed */
47
47
  /**
48
48
   * LOCK_event_loop protects the non-thread safe libevent calls (event_add
49
49
   * and event_del) and sessions_need_processing and sessions_waiting_for_io.
50
50
   */
51
 
  pthread_mutex_t LOCK_event_loop;
 
51
  boost::mutex LOCK_event_loop;
52
52
 
53
53
  std::queue<drizzled::Session *> sessions_need_adding; /* queue of sessions to add to libevent queue */
54
54
  std::queue<drizzled::Session *> sessions_to_be_killed; /* queue of sessions to be killed */