~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-11-16 20:38:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1938.
  • Revision ID: brian@tangent.org-20101116203833-csn581b7jwlkum0w
Finish change so that we use a shared_ptr for the session list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
  // Plugin storage in Session.
311
311
  typedef boost::unordered_map<std::string, util::Storable *, util::insensitive_hash, util::insensitive_equal_to> PropertyMap;
312
312
  typedef Session* Ptr;
 
313
  typedef boost::shared_ptr<Session> shared_ptr;
313
314
 
314
315
  /*
315
316
    MARK_COLUMNS_NONE:  Means mark_used_colums is not set and no indicator to
1135
1136
  /**
1136
1137
   * Schedule a session to be run on the default scheduler.
1137
1138
   */
1138
 
  static bool schedule(Session::Ptr);
 
1139
  static bool schedule(Session::shared_ptr);
1139
1140
 
1140
 
  static void unlink(Session*);
 
1141
  static void unlink(Session::shared_ptr);
 
1142
  static void unlink(Session::Ptr);
1141
1143
 
1142
1144
  /*
1143
1145
    For enter_cond() / exit_cond() to work the mutex must be got before