|
@@ -20,11 +20,11 @@
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE ReMutexDirect::
|
|
INLINE ReMutexDirect::
|
|
|
ReMutexDirect()
|
|
ReMutexDirect()
|
|
|
-#ifndef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifndef HAVE_REMUTEXTRUEIMPL
|
|
|
: _cvar_impl(_lock_impl)
|
|
: _cvar_impl(_lock_impl)
|
|
|
#endif
|
|
#endif
|
|
|
{
|
|
{
|
|
|
-#ifndef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifndef HAVE_REMUTEXTRUEIMPL
|
|
|
_locking_thread = NULL;
|
|
_locking_thread = NULL;
|
|
|
_lock_count = 0;
|
|
_lock_count = 0;
|
|
|
#endif
|
|
#endif
|
|
@@ -46,7 +46,7 @@ INLINE ReMutexDirect::
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE ReMutexDirect::
|
|
INLINE ReMutexDirect::
|
|
|
ReMutexDirect(const ReMutexDirect ©)
|
|
ReMutexDirect(const ReMutexDirect ©)
|
|
|
-#ifndef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifndef HAVE_REMUTEXTRUEIMPL
|
|
|
: _cvar_impl(_lock_impl)
|
|
: _cvar_impl(_lock_impl)
|
|
|
#endif
|
|
#endif
|
|
|
{
|
|
{
|
|
@@ -81,11 +81,11 @@ operator = (const ReMutexDirect ©) {
|
|
|
INLINE void ReMutexDirect::
|
|
INLINE void ReMutexDirect::
|
|
|
lock() const {
|
|
lock() const {
|
|
|
TAU_PROFILE("void ReMutexDirect::lock()", " ", TAU_USER);
|
|
TAU_PROFILE("void ReMutexDirect::lock()", " ", TAU_USER);
|
|
|
-#ifdef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifdef HAVE_REMUTEXTRUEIMPL
|
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
|
#else
|
|
#else
|
|
|
((ReMutexDirect *)this)->do_lock();
|
|
((ReMutexDirect *)this)->do_lock();
|
|
|
-#endif // HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#endif // HAVE_REMUTEXTRUEIMPL
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -98,11 +98,11 @@ lock() const {
|
|
|
INLINE void ReMutexDirect::
|
|
INLINE void ReMutexDirect::
|
|
|
lock(Thread *current_thread) const {
|
|
lock(Thread *current_thread) const {
|
|
|
TAU_PROFILE("void ReMutexDirect::lock(Thread *)", " ", TAU_USER);
|
|
TAU_PROFILE("void ReMutexDirect::lock(Thread *)", " ", TAU_USER);
|
|
|
-#ifdef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifdef HAVE_REMUTEXTRUEIMPL
|
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
|
#else
|
|
#else
|
|
|
((ReMutexDirect *)this)->do_lock(current_thread);
|
|
((ReMutexDirect *)this)->do_lock(current_thread);
|
|
|
-#endif // HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#endif // HAVE_REMUTEXTRUEIMPL
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -123,11 +123,11 @@ lock(Thread *current_thread) const {
|
|
|
INLINE void ReMutexDirect::
|
|
INLINE void ReMutexDirect::
|
|
|
elevate_lock() const {
|
|
elevate_lock() const {
|
|
|
TAU_PROFILE("void ReMutexDirect::elevate_lock()", " ", TAU_USER);
|
|
TAU_PROFILE("void ReMutexDirect::elevate_lock()", " ", TAU_USER);
|
|
|
-#ifdef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifdef HAVE_REMUTEXTRUEIMPL
|
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
((ReMutexDirect *)this)->_impl.lock();
|
|
|
#else
|
|
#else
|
|
|
((ReMutexDirect *)this)->do_elevate_lock();
|
|
((ReMutexDirect *)this)->do_elevate_lock();
|
|
|
-#endif // HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#endif // HAVE_REMUTEXTRUEIMPL
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -143,11 +143,11 @@ elevate_lock() const {
|
|
|
INLINE void ReMutexDirect::
|
|
INLINE void ReMutexDirect::
|
|
|
release() const {
|
|
release() const {
|
|
|
TAU_PROFILE("void ReMutexDirect::release()", " ", TAU_USER);
|
|
TAU_PROFILE("void ReMutexDirect::release()", " ", TAU_USER);
|
|
|
-#ifdef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifdef HAVE_REMUTEXTRUEIMPL
|
|
|
((ReMutexDirect *)this)->_impl.release();
|
|
((ReMutexDirect *)this)->_impl.release();
|
|
|
#else
|
|
#else
|
|
|
((ReMutexDirect *)this)->do_release();
|
|
((ReMutexDirect *)this)->do_release();
|
|
|
-#endif // HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#endif // HAVE_REMUTEXTRUEIMPL
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -207,7 +207,7 @@ get_name() const {
|
|
|
return string();
|
|
return string();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#ifndef HAVE_REMUTEXIMPL
|
|
|
|
|
|
|
+#ifndef HAVE_REMUTEXTRUEIMPL
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: ReMutexDirect::do_lock
|
|
// Function: ReMutexDirect::do_lock
|
|
|
// Access: Private
|
|
// Access: Private
|