~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/session_scheduler.cc

Giving session_scheduler class member a better name based on re-factoring.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
  event_set(&io_event, drizzleclient_net_get_sd(&(parent_session->net)), EV_READ,
41
41
            libevent_io_callback, (void*)parent_session);
42
42
 
43
 
  sess= parent_session;
 
43
  session= parent_session;
44
44
}
45
45
 
46
46
/*
50
50
bool session_scheduler::thread_attach()
51
51
{
52
52
  assert(!thread_attached);
53
 
  if (libevent_should_close_connection(sess) ||
54
 
      setup_connection_thread_globals(sess))
 
53
  if (libevent_should_close_connection(session) ||
 
54
      setup_connection_thread_globals(session))
55
55
  {
56
56
    return true;
57
57
  }
58
58
  my_errno= 0;
59
 
  sess->mysys_var->abort= 0;
 
59
  session->mysys_var->abort= 0;
60
60
  thread_attached= true;
61
61
 
62
62
  return false;
71
71
{
72
72
  if (thread_attached)
73
73
  {
74
 
    sess->mysys_var= NULL;
 
74
    session->mysys_var= NULL;
75
75
    thread_attached= false;
76
76
  }
77
77
}