~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/query_id.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <pthread.h>
24
24
#include <drizzled/atomics.h>
25
25
 
 
26
namespace drizzled
 
27
{
 
28
 
26
29
typedef uint64_t query_id_t;
27
30
 
28
31
class Query_id
41
44
  query_id_t next();
42
45
 
43
46
private:
44
 
  drizzled::atomic<uint64_t> the_query_id;
 
47
  atomic<uint64_t> the_query_id;
45
48
 
46
49
  Query_id();
47
50
  Query_id(Query_id const&);
48
51
  Query_id& operator=(Query_id const&);
49
52
};
50
53
 
 
54
} /* namespace drizzled */
 
55
 
51
56
#endif /* DRIZZLED_QUERY_ID_H */