~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/memory/root.h

  • Committer: Zimin
  • Date: 2010-06-30 06:36:56 UTC
  • mto: (1643.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1644.
  • Revision ID: ziminq@gmail.com-20100630063656-5oa531u1mfyn6ybl
move the comment of 'create' in TableList as well

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/**
17
17
 * @file
64
64
{
65
65
public:
66
66
 
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
 
 
 
67
  Root() { }
78
68
  Root(size_t block_size_arg)
79
69
  {
80
70
    free= used= pre_alloc= 0;
81
71
    min_malloc= 32;
82
72
    block_size= block_size_arg - memory::ROOT_MIN_BLOCK_SIZE;
 
73
    error_handler= 0;
83
74
    block_num= 4;                       /* We shift this with >>2 */
84
75
    first_block_usage= 0;
85
 
    error_handler= 0;
86
76
  }
87
77
 
88
 
  ~Root();
89
 
 
90
78
  /**
91
79
   * blocks with free memory in it 
92
80
   */
131
119
  }
132
120
  void free_root(myf MyFLAGS);
133
121
  void *multi_alloc_root(int unused, ...);
 
122
 
134
123
};
135
124
 
136
125
} /* namespace memory */