~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/query_id.h

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

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 */