~singhabhishek-bit/drizzle/drizzle-bug-644807

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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: