~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/current_session.h

  • Committer: Stewart Smith
  • Date: 2010-02-22 07:44:37 UTC
  • mfrom: (1283.17.4)
  • mto: (1283.19.1)
  • mto: This revision was merged to the branch mainline in revision 1449.
  • Revision ID: stewart@flamingspork.com-20100222074437-1a9x1n030tbtv1qv
Merged embeddded-innodb-store-table-proto into embedded-innodb-write-row.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
18
18
 */
19
19
 
20
20
 
21
 
#pragma once
22
 
 
23
 
#include <pthread.h>
24
 
#include <boost/thread/tss.hpp>
25
 
#include <drizzled/common_fwd.h>
26
 
#include <drizzled/visibility.h>
27
 
 
28
 
namespace drizzled {
29
 
 
30
 
DRIZZLED_API Session *_current_session();
 
21
#ifndef DRIZZLED_CURRENT_SESSION_H
 
22
#define DRIZZLED_CURRENT_SESSION_H
 
23
 
 
24
namespace drizzled
 
25
{
 
26
 
 
27
class Session;
 
28
 
 
29
namespace memory { class Root; }
 
30
 
 
31
Session *_current_session(void);
31
32
#define current_session ::drizzled::_current_session()
32
 
memory::Root *current_mem_root();
33
 
 
34
 
void setCurrentSession(Session*);
35
 
void setCurrentMemRoot(memory::Root*);
 
33
memory::Root *current_mem_root(void);
36
34
 
37
35
} /* namespace drizzled */
 
36
 
 
37
#endif /* DRIZZLED_CURRENT_SESSION_H */