~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-08-11 18:47:39 UTC
  • mfrom: (1689.2.28 rollup)
  • Revision ID: brian@gaz-20100811184739-ey7llnsu12gfv6hb
No longer concurrent, no longer need these locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
  return false;                                 // 'false', as per coding style
287
287
}
288
288
 
 
289
void Session::setAbort(bool arg)
 
290
{
 
291
  mysys_var->abort= arg;
 
292
}
 
293
 
 
294
void Session::lockOnSys()
 
295
{
 
296
  if (not mysys_var)
 
297
    return;
 
298
 
 
299
  setAbort(true);
 
300
  pthread_mutex_lock(&mysys_var->mutex);
 
301
  if (mysys_var->current_cond)
 
302
  {
 
303
    pthread_mutex_lock(mysys_var->current_mutex);
 
304
    pthread_cond_broadcast(mysys_var->current_cond);
 
305
    pthread_mutex_unlock(mysys_var->current_mutex);
 
306
  }
 
307
  pthread_mutex_unlock(&mysys_var->mutex);
 
308
}
 
309
 
289
310
void Session::pop_internal_handler()
290
311
{
291
312
  assert(m_internal_handler != NULL);