~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-11-08 05:00:04 UTC
  • mto: (1921.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1916.
  • Revision ID: brian@tangent.org-20101108050004-l50ikx9zdtcq1e5a
First pass through the global lock refactor merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
718
718
  uint32_t row_count;
719
719
  session_id_t thread_id;
720
720
  uint32_t tmp_table;
721
 
  uint32_t global_read_lock;
 
721
  enum global_read_lock_t
 
722
  {
 
723
    NONE= 0,
 
724
    GOT_GLOBAL_READ_LOCK= 1,
 
725
    MADE_GLOBAL_READ_LOCK_BLOCK_COMMIT= 2
 
726
  };
 
727
private:
 
728
  global_read_lock_t _global_read_lock;
 
729
 
 
730
public:
 
731
 
 
732
  global_read_lock_t isGlobalReadLock() const
 
733
  {
 
734
    return _global_read_lock;
 
735
  }
 
736
 
 
737
  void setGlobalReadLock(global_read_lock_t arg)
 
738
  {
 
739
    _global_read_lock= arg;
 
740
  }
 
741
 
 
742
  void unlockGlobalReadLock();
 
743
  void startWaitingGlobalReadLock();
 
744
  bool makeGlobalReadLockBlockCommit();
 
745
  bool lockGlobalReadLock();
 
746
 
722
747
  uint32_t server_status;
723
748
  uint32_t open_options;
724
749
  uint32_t select_number; /**< number of select (used for EXPLAIN) */