equal
deleted
inserted
replaced
168 // Set the entry following value to new_next in the list used by the |
168 // Set the entry following value to new_next in the list used by the |
169 // specialized LockFreeStack class. Not thread-safe; in particular, |
169 // specialized LockFreeStack class. Not thread-safe; in particular, |
170 // if value is in an instance of this specialization of LockFreeStack, |
170 // if value is in an instance of this specialization of LockFreeStack, |
171 // there must be no concurrent push or pop operations on that stack. |
171 // there must be no concurrent push or pop operations on that stack. |
172 static void set_next(T& value, T* new_next) { |
172 static void set_next(T& value, T* new_next) { |
173 Atomic::store(new_next, next_ptr(value)); |
173 Atomic::store(next_ptr(value), new_next); |
174 } |
174 } |
175 }; |
175 }; |
176 |
176 |
177 #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP |
177 #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP |