Updated wrappers to fix OpenThreads::Atomic build issues.
This commit is contained in:
parent
a94cfccdce
commit
4c9b3de4a1
@ -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
|
||||
|
@ -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)
|
||||
{ }
|
||||
|
31
src/osgWrappers/OpenThreads/Atomic.cpp
Normal file
31
src/osgWrappers/OpenThreads/Atomic.cpp
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user