~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/query_id.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

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