~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/thread_var.h

  • Committer: Monty Taylor
  • Date: 2010-10-21 23:10:12 UTC
  • mto: (1879.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1880.
  • Revision ID: mordred@inaugust.com-20101021231012-uhsebiqo23xi0ygy
Updated AUTHORS list with everyone from bzr logs.

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
 
32
37
struct st_my_thread_var
33
38
{
34
39
  boost::condition_variable_any suspend;
35
40
  boost::mutex mutex;
36
41
  boost::mutex * volatile current_mutex;
37
42
  boost::condition_variable_any * volatile current_cond;
 
43
  pthread_t pthread_self;
38
44
  uint64_t id;
39
45
  int volatile abort;
 
46
  struct st_my_thread_var *next,**prev;
40
47
  void *opt_info;
41
48
 
42
49
  st_my_thread_var() :
44
51
    current_cond(0),
45
52
    id(0),
46
53
    abort(false),
 
54
    next(0),
 
55
    prev(0),
47
56
    opt_info(0)
48
57
  { 
 
58
    pthread_self= wrapper_pthread_self();
49
59
  }
50
60
 
51
61
  ~st_my_thread_var()