~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 16:36:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622163640-pwub8fpyqfdvqek4
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
#endif
124
124
}
125
125
 
126
 
bool MultiThreadScheduler::addSession(Session::shared_ptr &session)
 
126
bool MultiThreadScheduler::addSession(const Session::shared_ptr& session)
127
127
{
128
128
  if (thread_count >= max_threads)
129
129
    return true;
165
165
  }
166
166
}
167
167
 
168
 
void MultiThreadScheduler::killSessionNow(Session::shared_ptr &session)
 
168
void MultiThreadScheduler::killSessionNow(const Session::shared_ptr& session)
169
169
{
170
170
  killSession(session.get());
171
171