~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/thread_var.h

  • Committer: Mark Atwood
  • Date: 2011-10-03 17:42:47 UTC
  • mfrom: (2415.1.4 drizzle-build)
  • Revision ID: me@mark.atwood.name-20111003174247-aqqv3n6li2rlzfzq
mergeĀ lp:~brianaker/drizzle/factor-thread-specific

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 */