~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/current_session.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 23:52:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110323235254-g3q0c1feajno7edr
 Remove const_reference and reference from identifier::Table

Show diffs side-by-side

added added

removed removed

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