~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/query_id.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-08 04:22:33 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090808042233-q0z88zc490z3f3r7
Renamed the Command class to be Statement. Renamed the command directory to
statement and also the command header file to statement. Updated various
source files to reflect this renaming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_QUERY_ID_H
21
 
#define DRIZZLED_QUERY_ID_H
 
20
#ifndef DRIZZLED_GLOBAL_QUERY_ID_H
 
21
#define DRIZZLED_GLOBAL_QUERY_ID_H
22
22
 
23
23
#include <pthread.h>
24
24
#include <drizzled/atomics.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
 
typedef uint64_t query_id_t;
30
 
 
31
26
class Query_id
32
27
{
33
28
public:
44
39
  query_id_t next();
45
40
 
46
41
private:
47
 
  atomic<uint64_t> the_query_id;
 
42
  drizzled::atomic<uint64_t> the_query_id;
48
43
 
49
44
  Query_id();
50
45
  Query_id(Query_id const&);
51
46
  Query_id& operator=(Query_id const&);
52
47
};
53
48
 
54
 
} /* namespace drizzled */
55
 
 
56
 
#endif /* DRIZZLED_QUERY_ID_H */
 
49
#endif