~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Brian Aker
  • Date: 2010-08-18 03:47:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1720.
  • Revision ID: brian@tangent.org-20100818034758-4cneukk4ppl8u855
Updating so that structures have constructor (removed memset calls).

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
{
65
65
public:
66
66
 
67
 
  Root() { }
 
67
  Root() :
 
68
    free(0),
 
69
    used(0),
 
70
    pre_alloc(0),
 
71
    min_malloc(0),
 
72
    block_size(0),
 
73
    block_num(0),
 
74
    first_block_usage(0),
 
75
    error_handler(0)
 
76
  { }
 
77
 
68
78
  Root(size_t block_size_arg)
69
79
  {
70
80
    free= used= pre_alloc= 0;
71
81
    min_malloc= 32;
72
82
    block_size= block_size_arg - memory::ROOT_MIN_BLOCK_SIZE;
73
 
    error_handler= 0;
74
83
    block_num= 4;                       /* We shift this with >>2 */
75
84
    first_block_usage= 0;
 
85
    error_handler= 0;
76
86
  }
77
87
 
78
88
  /**
119
129
  }
120
130
  void free_root(myf MyFLAGS);
121
131
  void *multi_alloc_root(int unused, ...);
122
 
 
123
132
};
124
133
 
125
134
} /* namespace memory */