~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/current_session.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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
 
 
 
25
#include <drizzled/common_fwd.h>
26
26
#include <drizzled/visibility.h>
27
27
 
28
 
namespace drizzled
29
 
{
30
 
 
31
 
class Session;
32
 
 
33
 
namespace memory { class Root; }
34
 
 
35
 
DRIZZLED_API Session *_current_session(void);
 
28
namespace drizzled {
 
29
 
 
30
DRIZZLED_API Session *_current_session();
36
31
#define current_session ::drizzled::_current_session()
37
 
memory::Root *current_mem_root(void);
 
32
memory::Root *current_mem_root();
38
33
 
39
34
typedef boost::thread_specific_ptr<Session> MySessionVar;
40
35
typedef boost::thread_specific_ptr<memory::Root *> MyMemoryRootVar;
41
36
 
42
 
MySessionVar &currentSession(void);
43
 
MyMemoryRootVar &currentMemRoot(void);
 
37
MySessionVar &currentSession();
 
38
MyMemoryRootVar &currentMemRoot();
44
39
 
45
40
} /* namespace drizzled */
46