|
@@ -78,6 +78,16 @@ release() {
|
|
|
assert(result == 0);
|
|
assert(result == 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: MutexPosixImpl::get_posix_lock
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description: Returns the underlying Posix lock handle.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE pthread_mutex_t *MutexPosixImpl::
|
|
|
|
|
+get_posix_lock() {
|
|
|
|
|
+ return _lock;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: ReMutexPosixImpl::Constructor
|
|
// Function: ReMutexPosixImpl::Constructor
|
|
|
// Access: Public
|
|
// Access: Public
|
|
@@ -142,3 +152,13 @@ release() {
|
|
|
int result = pthread_mutex_unlock(&_lock);
|
|
int result = pthread_mutex_unlock(&_lock);
|
|
|
assert(result == 0);
|
|
assert(result == 0);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: ReMutexPosixImpl::get_posix_lock
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description: Returns the underlying Posix lock handle.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE pthread_mutex_t *ReMutexPosixImpl::
|
|
|
|
|
+get_posix_lock() {
|
|
|
|
|
+ return _lock;
|
|
|
|
|
+}
|