~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_thr_init.cc

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:28:23 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032823-44k21f0njmk97omr
fix docs warning: Title underline (and overline) is too short in brief_history_of_drizzle.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "config.h"
22
22
 
23
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/internal/my_pthread.h"
24
25
#include "drizzled/internal/thread_var.h"
25
26
#include "drizzled/internal/m_string.h"
26
27
 
117
118
 
118
119
  NOTE
119
120
    This may be called multiple times for a thread.
120
 
    This happens for example when one calls 'server_init()'
121
 
    server_end() and then ends with a end().
 
121
    This happens for example when one calls 'mysql_server_init()'
 
122
    mysql_server_end() and then ends with a mysql_end().
122
123
*/
123
124
 
124
125
void my_thread_end(void)
125
126
{
 
127
  st_my_thread_var *tmp= THR_KEY_mysys.get();
 
128
 
 
129
  if (tmp)
 
130
  {
 
131
    delete tmp;
 
132
    THR_KEY_mysys.release();
 
133
  }
126
134
}
127
135
 
128
136
struct st_my_thread_var *_my_thread_var(void)