Updated wrappers to fix OpenThreads::Atomic build issues.

This commit is contained in:
Robert Osfield
2008-06-19 13:28:33 +00:00
parent a94cfccdce
commit 4c9b3de4a1
3 changed files with 42 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenThreads {
* @class Atomic
* @brief This class provides an atomic increment and decrement operation.
*/
class OPENTHREAD_EXPORT_DIRECTIVE Atomic {
class Atomic {
public:
Atomic(unsigned value = 0) : _value(value)
{ }
@@ -91,6 +91,7 @@ class OPENTHREAD_EXPORT_DIRECTIVE Atomic {
}
private:
Atomic(const Atomic&);
Atomic& operator=(const Atomic&);
@@ -111,7 +112,7 @@ class OPENTHREAD_EXPORT_DIRECTIVE Atomic {
* @brief This class provides an atomic pointer assignment using cas operations.
*/
template<typename T>
class OPENTHREAD_EXPORT_DIRECTIVE AtomicPtr {
class AtomicPtr {
public:
AtomicPtr(T* ptr = 0) : _ptr(ptr)
{ }