Fixed warnings, deprecated another out of date method

This commit is contained in:
Robert Osfield
2016-09-05 15:35:54 +01:00
parent ec344a85b4
commit cb6e6ff2be
2 changed files with 3 additions and 29 deletions

View File

@@ -47,18 +47,17 @@ class OSG_EXPORT Referenced
Referenced();
/// deprecated, Referenced is now always uses thread safe ref/unref, use default Refernced() constructor instead
/** Deprecated, Referenced is now always uses thread safe ref/unref, use default Refernced() constructor instead */
explicit Referenced(bool threadSafeRefUnref);
Referenced(const Referenced&);
inline Referenced& operator = (const Referenced&) { return *this; }
/** Set whether to use a mutex to ensure ref() and unref() are thread safe.*/
virtual void setThreadSafeRefUnref(bool threadSafe);
/** Deprecated, Referenced is always theadsafe so there method now has no effect and does not need to be called.*/
virtual void setThreadSafeRefUnref(bool /*threadSafe*/) {}
/** Get whether a mutex is used to ensure ref() and unref() are thread safe.*/
#if defined(_OSG_REFERENCED_USE_ATOMIC_OPERATIONS)
bool getThreadSafeRefUnref() const { return true; }
#else