1 #ifndef __JLANG__JMUTEX__ 
    2 #define __JLANG__JMUTEX__ 
   46 template<
typename Lockable>
 
  106     pthread_mutex_init(&
m_mutex, 0);
 
  114     pthread_mutex_destroy(&
m_mutex);
 
  124     return pthread_mutex_lock(&
m_mutex);
 
  134     return pthread_mutex_trylock(&
m_mutex);
 
  144     return pthread_mutex_unlock(&
m_mutex);
 
JBasicScopedLock(const JBasicScopedLock &)
Neither copy-constructible nor copy-assignable.
 
JBasicScopedLock(Lockable &lock)
Constructor.
 
int unlock()
Unlock the mutex.
 
JBasicScopedLock(JBasicScopedLock &&)
 
JBasicScopedLock operator=(const JBasicScopedLock &)
 
~JBasicScopedLock()
Destructor.
 
JBasicScopedLock< JMutex > JScopedLock
 
int try_lock()
Try lock the mutex.
 
int lock()
Lock the mutex.
 
int unlock()
Unlock the mutex.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).