5#ifndef ICE_UTIL_MUTEX_PTR_TRY_LOCK_H
6#define ICE_UTIL_MUTEX_PTR_TRY_LOCK_H
11namespace IceUtilInternal
19 MutexPtrTryLock<T>(
const T* mutex) :
25 _acquired = _mutex->tryLock();
31 if(_mutex && _acquired)
52 throw IceUtil::ThreadLockedException(__FILE__, __LINE__);
68 MutexPtrTryLock<T>(
const MutexPtrTryLock&);
69 MutexPtrTryLock<T>& operator=(
const MutexPtrTryLock<T>&);
72 mutable bool _acquired;