~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-08-13 18:47:12 UTC
  • mfrom: (1703.1.4 staging)
  • Revision ID: brian@tangent.org-20100813184712-rx8hjq33powaaqlv
Merge MyISAM changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
#include <boost/unordered_map.hpp>
57
57
#include <boost/thread/mutex.hpp>
 
58
#include <boost/thread/condition_variable.hpp>
58
59
 
59
60
#define MIN_HANDSHAKE_SIZE      6
60
61
 
959
960
    enter_cond(); this mutex is then released by exit_cond().
960
961
    Usage must be: lock mutex; enter_cond(); your code; exit_cond().
961
962
  */
962
 
  const char* enter_cond(pthread_cond_t *cond, pthread_mutex_t* mutex, const char* msg);
 
963
  const char* enter_cond(boost::condition_variable &cond, boost::mutex &mutex, const char* msg);
963
964
  void exit_cond(const char* old_msg);
964
965
 
965
966
  inline time_t query_start() { return start_time; }
1482
1483
  bool reopen_name_locked_table(TableList* table_list, bool link_in);
1483
1484
  bool close_cached_tables(TableList *tables, bool wait_for_refresh, bool wait_for_placeholders);
1484
1485
 
1485
 
  void wait_for_condition(pthread_mutex_t *mutex, pthread_cond_t *cond);
 
1486
  void wait_for_condition(boost::mutex &mutex, boost::condition_variable &cond);
1486
1487
  int setup_conds(TableList *leaves, COND **conds);
1487
1488
  int lock_tables(TableList *tables, uint32_t count, bool *need_reopen);
1488
1489