~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Brian Aker
  • Date: 2008-11-26 00:27:15 UTC
  • Revision ID: brian@tangent.org-20081126002715-2wtuul604lt472k0
More ulong work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
 
148
148
 
149
149
/*
150
 
  A global-only ulong variable that requires its access to be
 
150
  A global-only uint64_t variable that requires its access to be
151
151
  protected with a mutex.
152
152
*/
153
153
 
154
154
class sys_var_long_ptr_global: public sys_var_global
155
155
{
156
 
  ulong *value;
 
156
  uint64_t *value;
157
157
public:
158
158
  sys_var_long_ptr_global(sys_var_chain *chain, const char *name_arg,
159
 
                          ulong *value_ptr_arg,
 
159
                          uint64_t *value_ptr_arg,
160
160
                          pthread_mutex_t *guard_arg,
161
161
                          sys_after_update_func after_update_arg= NULL)
162
162
    :sys_var_global(name_arg, after_update_arg, guard_arg),
174
174
 
175
175
 
176
176
/*
177
 
  A global ulong variable that is protected by LOCK_global_system_variables
 
177
  A global uint64_t variable that is protected by LOCK_global_system_variables
178
178
*/
179
179
 
180
180
class sys_var_long_ptr :public sys_var_long_ptr_global
181
181
{
182
182
public:
183
 
  sys_var_long_ptr(sys_var_chain *chain, const char *name_arg, ulong *value_ptr,
 
183
  sys_var_long_ptr(sys_var_chain *chain, const char *name_arg, uint64_t *value_ptr,
184
184
                   sys_after_update_func after_update_arg= NULL);
185
185
};
186
186