~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/memcached_stats/sysvar_holder.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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&);