149
A global-only uint64_t variable that requires its access to be
150
protected with a mutex.
153
class sys_var_long_ptr_global: public sys_var_global
157
sys_var_long_ptr_global(sys_var_chain *chain, const char *name_arg,
158
uint64_t *value_ptr_arg,
159
pthread_mutex_t *guard_arg,
160
sys_after_update_func after_update_arg= NULL)
161
:sys_var_global(name_arg, after_update_arg, guard_arg),
163
{ chain_sys_var(chain); }
164
bool check(Session *session, set_var *var);
165
bool update(Session *session, set_var *var);
166
void set_default(Session *session, enum_var_type type);
167
SHOW_TYPE show_type() { return SHOW_LONG; }
168
unsigned char *value_ptr(Session *, enum_var_type, const LEX_STRING *)
169
{ return (unsigned char*) value; }
174
A global uint64_t variable that is protected by LOCK_global_system_variables
177
class sys_var_long_ptr :public sys_var_long_ptr_global
180
sys_var_long_ptr(sys_var_chain *chain, const char *name_arg, uint64_t *value_ptr,
181
sys_after_update_func after_update_arg= NULL);
185
148
class sys_var_uint32_t_ptr :public sys_var
195
158
sys_after_update_func func)
196
159
:sys_var(name_arg,func), value(value_ptr_arg)
197
160
{ chain_sys_var(chain); }
161
bool check(Session *session, set_var *var);
198
162
bool update(Session *session, set_var *var);
199
163
void set_default(Session *session, enum_var_type type);
200
164
SHOW_TYPE show_type() { return SHOW_LONG; }