~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 21:07:04 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328210704-ygzfovqmxukelkno
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#pragma once
24
24
 
25
25
#include <cstddef>
26
 
 
 
26
#include <drizzled/common_fwd.h>
27
27
#include <drizzled/definitions.h>
28
 
 
29
28
#include <drizzled/visibility.h>
30
29
 
31
 
namespace drizzled
32
 
{
 
30
namespace drizzled {
33
31
 
34
32
/**
35
33
 * @namespace drizzled::memory
39
37
 * comment on the namespace Doxygen won't extract any documentation for
40
38
 * namespace members.
41
39
 */
42
 
namespace memory
43
 
{
 
40
namespace memory {
44
41
 
45
42
static const int KEEP_PREALLOC= 1;
46
43
/* move used to free list and reuse them */
47
44
static const int MARK_BLOCKS_FREE= 2;
48
45
 
49
 
namespace internal
50
 
{
 
46
namespace internal {
51
47
 
52
48
class UsedMemory
53
49
{                          /* struct for once_alloc (block) */
61
57
 
62
58
static const size_t ROOT_MIN_BLOCK_SIZE= (MALLOC_OVERHEAD + sizeof(internal::UsedMemory) + 8);
63
59
 
64
 
 
65
 
 
66
60
class DRIZZLED_API Root
67
61
{
68
62
public: