~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_stats/sysvar_holder.h

  • Committer: Monty Taylor
  • Date: 2010-08-12 06:10:25 UTC
  • mto: (1711.1.1 innodb-plugin-merge)
  • mto: This revision was merged to the branch mainline in revision 1712.
  • Revision ID: mordred@inaugust.com-20100812061025-cme620sdil8aov41
Free strdup'd option strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    return servers_string;
67
67
  }
68
68
 
 
69
  void setMemoryPtr(void *mem_ptr_in)
 
70
  {
 
71
    memory_ptr= mem_ptr_in;
 
72
  }
 
73
 
69
74
private:
70
75
 
71
76
  pthread_mutex_t mutex;
72
77
 
73
78
  std::string servers_string;
 
79
  void *memory_ptr;
74
80
 
75
81
  SysvarHolder()
76
82
    :
77
83
      mutex(),
78
84
      servers_string()
 
85
      memory_ptr(NULL)
79
86
  {
80
87
    pthread_mutex_init(&mutex, NULL);
81
88
  }
83
90
  ~SysvarHolder()
84
91
  {
85
92
    pthread_mutex_destroy(&mutex);
 
93
    free(memory_ptr);
86
94
  }
87
95
 
88
96
  SysvarHolder(const SysvarHolder&);