From Tree, build fixes for JavaOSG build.

This commit is contained in:
Robert Osfield
2006-05-09 09:42:17 +00:00
parent bd895f94d4
commit 83722dc064

View File

@@ -187,6 +187,19 @@ class OSG_EXPORT Referenced : public NoodleGlue::CBridgable
*/
inline void unref_nodelete() const { --_refCount; }
inline int referenceCount() const { return _refCount; }
/* These methods are not used in JavaOSG */
void addObserver(Observer* observer_ptr) {}
void removeObserver(Observer* observer_ptr) {}
public:
/** Set whether reference counting should be use a mutex to create thread reference counting.*/
static void setThreadSafeReferenceCounting(bool enableThreadSafeReferenceCounting) {}
/** Get whether reference counting is active. */
static bool getThreadSafeReferenceCounting() { return true; }
protected:
virtual ~Referenced() {}
};