complete usage of Loki::Mutex, gcc can't compile without these corrections

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@506 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-21 14:11:09 +00:00
parent d032ef4528
commit 6a86ae304a

View file

@ -273,8 +273,8 @@ namespace Loki
}; };
#if defined(_PTHREAD_H) #if defined(_PTHREAD_H)
template <class Host> template <class Host, class MutexPolicy>
pthread_mutex_t ObjectLevelLockable<Host>::atomic_mutex_ = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t ObjectLevelLockable<Host, MutexPolicy>::atomic_mutex_ = PTHREAD_MUTEX_INITIALIZER;
#endif #endif
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -292,7 +292,7 @@ namespace Loki
bool init_; bool init_;
MutexPolicy mtx_; MutexPolicy mtx_;
Initializer() : init_(false), mtx() Initializer() : init_(false), mtx_()
{ {
init_ = true; init_ = true;
} }
@ -357,8 +357,8 @@ namespace Loki
}; };
#if defined(_PTHREAD_H) #if defined(_PTHREAD_H)
template <class Host> template <class Host, class MutexPolicy>
pthread_mutex_t ClassLevelLockable<Host>::atomic_mutex_ = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t ClassLevelLockable<Host, MutexPolicy>::atomic_mutex_ = PTHREAD_MUTEX_INITIALIZER;
#endif #endif
template < class Host, class MutexPolicy > template < class Host, class MutexPolicy >
@ -381,6 +381,9 @@ namespace Loki
#endif #endif
// $Log$ // $Log$
// Revision 1.24 2006/01/21 14:11:09 syntheticpp
// complete usage of Loki::Mutex, gcc can't compile without these corrections
//
// Revision 1.23 2006/01/21 13:09:45 syntheticpp // Revision 1.23 2006/01/21 13:09:45 syntheticpp
// don't compile Mutex when multi threading is disabled // don't compile Mutex when multi threading is disabled
// //