~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/atomic/gcc_traits.h

  • Committer: Brian Aker
  • Date: 2009-07-16 22:37:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: brian@gaz-20090716223701-vbbbo8dmgd2ljqqo
Refactor TableShare has to be behind class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
  inline value_type fetch(const volatile value_type *value) const volatile
68
68
  {
69
 
    /* 
70
 
     * This is necessary to ensure memory barriers are respected when
71
 
     * simply returning the value pointed at.  However, this does not
72
 
     * compile on ICC.
73
 
     *
74
 
     * @todo
75
 
     *
76
 
     * Look at how to rewrite the below to something that ICC feels is
77
 
     * OK and yet respects memory barriers.
78
 
     */
79
69
    return __sync_add_and_fetch(const_cast<value_type *>(value), 0);
80
70
  }
81
71