~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/pool_of_threads.h

Merged null-not-zero-as-pointer into remove-bit_fields_as_long.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
   */
51
51
  pthread_mutex_t LOCK_event_loop;
52
52
 
53
 
  std::queue<Session *> sessions_need_adding; /* queue of sessions to add to libevent queue */
54
 
  std::queue<Session *> sessions_to_be_killed; /* queue of sessions to be killed */
55
 
  std::queue<Session *> sessions_need_processing; /* queue of sessions that needs some processing */
 
53
  std::queue<drizzled::Session *> sessions_need_adding; /* queue of sessions to add to libevent queue */
 
54
  std::queue<drizzled::Session *> sessions_to_be_killed; /* queue of sessions to be killed */
 
55
  std::queue<drizzled::Session *> sessions_need_processing; /* queue of sessions that needs some processing */
56
56
  /**
57
57
   * Collection of sessions with added events
58
58
   *
60
60
   * promising to encounter an io event earlier than another; so no order
61
61
   * indeed! We will change this to unordered_set/hash_set when c++0x comes.
62
62
   */
63
 
  std::set<Session *> sessions_waiting_for_io;
 
63
  std::set<drizzled::Session *> sessions_waiting_for_io;
64
64
 
65
65
public:
66
66
  PoolOfThreadsScheduler(const char *name_arg);
75
75
   * @return 
76
76
   *  True if there is an error.
77
77
   */
78
 
  bool addSession(Session *session);
 
78
  bool addSession(drizzled::Session *session);
79
79
  
80
80
  
81
81
  /**
87
87
   *
88
88
   * @param[in]  session The connection to kill
89
89
   */
90
 
  void killSession(Session *session);
 
90
  void killSession(drizzled::Session *session);
91
91
 
92
92
  /**
93
93
   * @brief