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

@ -319,6 +319,14 @@ configure reflector "osg::GraphicsContext"
abstract-object-type
end
configure reflector "OpenThreads::Atomic"
object-type
end
configure reflector "OpenThreads::AtomicPtr"
object-type
end
#############################################################################
# Suppress nested nested class method

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)
{ }

View File

@ -0,0 +1,31 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <OpenThreads/Atomic>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_OBJECT_REFLECTOR(OpenThreads::Atomic)
I_DeclaringFile("OpenThreads/Atomic");
I_ConstructorWithDefaults1(IN, unsigned, value, 0,
Properties::NON_EXPLICIT,
____Atomic__unsigned,
"",
"");
END_REFLECTOR