~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/current_session.h

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_CURRENT_SESSION_H
22
22
#define DRIZZLED_CURRENT_SESSION_H
23
23
 
 
24
#include <pthread.h>
 
25
#include <boost/thread/tss.hpp>
 
26
 
24
27
namespace drizzled
25
28
{
26
29
 
32
35
#define current_session ::drizzled::_current_session()
33
36
memory::Root *current_mem_root(void);
34
37
 
 
38
typedef boost::thread_specific_ptr<Session> MySessionVar;
 
39
typedef boost::thread_specific_ptr<memory::Root *> MyMemoryRootVar;
 
40
 
 
41
MySessionVar &currentSession(void);
 
42
MyMemoryRootVar &currentMemRoot(void);
 
43
 
35
44
} /* namespace drizzled */
36
45
 
37
46
#endif /* DRIZZLED_CURRENT_SESSION_H */