~mordred/ubuntu/maverick/drizzle/prerelease

« back to all changes in this revision

Viewing changes to drizzled/current_session.h

  • Committer: Monty Taylor
  • Date: 2010-09-26 16:09:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1383.
  • Revision ID: mordred@inaugust.com-20100926160902-r30v5hegk16cjk22
Tags: upstream-2010.09.1794
ImportĀ upstreamĀ versionĀ 2010.09.1794

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 */