~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-11-16 23:20:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1938.
  • Revision ID: brian@tangent.org-20101116232022-qxi9atnhrayhhpwe
Remove need lock/mutex around deleting session.

Show diffs side-by-side

added added

removed removed

Lines of Context:
486
486
  THR_LOCK_INFO lock_info; /**< Locking information for this session */
487
487
  THR_LOCK_OWNER main_lock_id; /**< To use for conventional queries */
488
488
  THR_LOCK_OWNER *lock_id; /**< If not main_lock_id, points to the lock_id of a cursor. */
489
 
private:
490
 
  boost::mutex LOCK_delete; /**< Locked before session is deleted */
491
 
public:
492
 
 
493
 
  void lockForDelete()
494
 
  {
495
 
    LOCK_delete.lock();
496
 
  }
497
 
 
498
 
  void unlockForDelete()
499
 
  {
500
 
    LOCK_delete.unlock();
501
 
  }
502
489
 
503
490
  /**
504
491
   * A pointer to the stack frame of the scheduler thread