~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/session_scheduler.cc

MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
bool session_scheduler::thread_attach()
51
51
{
52
52
  assert(!thread_attached);
53
 
  Session* session = (Session*)list.data;
 
53
  Session* session = static_cast<Session*>(list.data);
54
54
  if (libevent_should_close_connection(session) ||
55
55
      setup_connection_thread_globals(session))
56
56
  {
72
72
{
73
73
  if (thread_attached)
74
74
  {
75
 
    Session* session = (Session*)list.data;
 
75
    Session* session = static_cast<Session*>(list.data);
76
76
    session->mysys_var= NULL;
77
77
    thread_attached= false;
78
78
  }