~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/thread_var.h

  • Committer: Brian Aker
  • Date: 2010-11-27 13:42:52 UTC
  • mfrom: (1954.1.4 refactor)
  • Revision ID: brian@tangent.org-20101127134252-saoy83851uoait87
remove dead code around old locks

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
namespace internal
30
30
{
31
31
 
32
 
static pthread_t wrapper_pthread_self()
33
 
{
34
 
  return pthread_self();
35
 
}
36
 
 
37
32
struct st_my_thread_var
38
33
{
39
34
  boost::condition_variable_any suspend;
40
35
  boost::mutex mutex;
41
36
  boost::mutex * volatile current_mutex;
42
37
  boost::condition_variable_any * volatile current_cond;
43
 
  pthread_t pthread_self;
44
38
  uint64_t id;
45
39
  int volatile abort;
46
 
  struct st_my_thread_var *next,**prev;
47
40
  void *opt_info;
48
41
 
49
42
  st_my_thread_var() :
51
44
    current_cond(0),
52
45
    id(0),
53
46
    abort(false),
54
 
    next(0),
55
 
    prev(0),
56
47
    opt_info(0)
57
48
  { 
58
 
    pthread_self= wrapper_pthread_self();
59
49
  }
60
50
 
61
51
  ~st_my_thread_var()