Lines Matching defs:mutex
29 #include "runtime/mutex.hpp"
146 // A MutexLocker provides mutual exclusion with respect to a given mutex
164 char *lock_name(Mutex *mutex);
170 MutexLocker(Monitor * mutex) {
171 assert(mutex->rank() != Mutex::special,
172 "Special ranked mutex should only use MutexLockerEx");
173 _mutex = mutex;
178 MutexLocker(Monitor * mutex, Thread *thread) {
179 assert(mutex->rank() != Mutex::special,
180 "Special ranked mutex should only use MutexLockerEx");
181 _mutex = mutex;
211 MutexLockerEx(Monitor * mutex, bool no_safepoint_check = !Mutex::_no_safepoint_check_flag) {
212 _mutex = mutex;
214 assert(mutex->rank() > Mutex::special || no_safepoint_check,
280 // A GCMutexLocker is usually initialized with a mutex that is
283 // GC's. Thus, it must acquire the mutex if GC is not in progress, but not
284 // if GC is in progress (since the mutex is already held on its behalf.)
291 GCMutexLocker(Monitor * mutex);
298 // entered mutex for the scope which contains the unlocker.
305 MutexUnlocker(Monitor * mutex) {
306 _mutex = mutex;
316 // entered mutex for the scope which contains the unlocker.
324 MutexUnlockerEx(Monitor * mutex, bool no_safepoint_check = !Mutex::_no_safepoint_check_flag) {
325 _mutex = mutex;
354 VerifyMutexLocker(Monitor * mutex) {
355 _mutex = mutex;
356 _reentrant = mutex->owned_by_self();