~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/thread_var.h

  • Committer: Brian Aker
  • Date: 2011-09-26 15:02:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2427.
  • Revision ID: brian@tangent.org-20110926150254-zpi0gifzexj2crdt
Wrap thread specfic

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#pragma once
19
19
 
20
20
#include <pthread.h>
 
21
#include <boost/thread/condition_variable.hpp>
 
22
#include <boost/thread/mutex.hpp>
21
23
#include <boost/thread/recursive_mutex.hpp>
22
 
#include <boost/thread/mutex.hpp>
23
24
#include <boost/thread/shared_mutex.hpp>
24
 
#include <boost/thread/condition_variable.hpp>
 
25
#include <boost/thread/thread.hpp>
 
26
#include <boost/thread/tss.hpp>
25
27
 
26
28
namespace drizzled {
27
29
namespace internal {
46
48
  }
47
49
};
48
50
 
49
 
st_my_thread_var* my_thread_var();
 
51
typedef boost::thread_specific_ptr<st_my_thread_var> thread_local_st;
 
52
 
 
53
thread_local_st& my_thread_var2();
50
54
 
51
55
} /* namespace internal */
52
56
} /* namespace drizzled */