~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_thr_init.cc

  • Committer: Monty Taylor
  • Date: 2010-11-25 17:05:36 UTC
  • mto: (1953.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1955.
  • Revision ID: mordred@inaugust.com-20101125170536-lik3sg2qmxjgowle
Fixed formats on 32-bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  thread variables.
19
19
*/
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
 
23
 
#include <drizzled/internal/my_sys.h>
24
 
#include <drizzled/internal/thread_var.h>
25
 
#include <drizzled/internal/m_string.h>
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/internal/thread_var.h"
 
25
#include "drizzled/internal/m_string.h"
26
26
 
27
27
#include <cstdio>
28
28
#include <signal.h>
117
117
 
118
118
  NOTE
119
119
    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().
 
120
    This happens for example when one calls 'mysql_server_init()'
 
121
    mysql_server_end() and then ends with a mysql_end().
122
122
*/
123
123
 
124
124
void my_thread_end(void)
125
125
{
 
126
  st_my_thread_var *tmp= THR_KEY_mysys.get();
 
127
 
 
128
  if (tmp)
 
129
  {
 
130
    delete tmp;
 
131
    THR_KEY_mysys.release();
 
132
  }
126
133
}
127
134
 
128
135
struct st_my_thread_var *_my_thread_var(void)