~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/session_scheduler.cc

  • Committer: Brian Aker
  • Date: 2009-03-09 15:52:42 UTC
  • mfrom: (919.2.14 mordred)
  • Revision ID: brian@tangent.org-20090309155242-lv5dje0wgd44rcm8
Merge of Monty's work.

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
 
  list.data= 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
 
  Session* session = static_cast<Session*>(list.data);
54
53
  if (libevent_should_close_connection(session) ||
55
54
      setup_connection_thread_globals(session))
56
55
  {
72
71
{
73
72
  if (thread_attached)
74
73
  {
75
 
    Session* session = static_cast<Session*>(list.data);
76
74
    session->mysys_var= NULL;
77
75
    thread_attached= false;
78
76
  }