123456789101112131415161718192021222324252627 |
- #pragma once
- #include "ExtendedAtomicTypes.h"
- UNITY_PLATFORM_BEGIN_NAMESPACE;
- class AtomicNode
- {
- friend class AtomicStack;
- friend class AtomicQueue;
- friend class MutexLockedStack;
- friend class MutexLockedQueue;
- volatile atomic_word _next;
- public:
- void* data[3];
- AtomicNode *Next() const
- {
- return (AtomicNode*)_next;
- }
- AtomicNode *Link(AtomicNode *next);
- };
- UNITY_PLATFORM_END_NAMESPACE;
|