make object level threading possible
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@201 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
7382c3dde0
commit
687c3682a7
6 changed files with 27 additions and 20 deletions
|
@ -12,10 +12,10 @@
|
|||
// $Header$
|
||||
|
||||
|
||||
#if defined(CLASS_LEVEL_THREADING) || defined(OBJECT_LEVEL_THREADING)
|
||||
// threads only on windows
|
||||
#include <windows.h>
|
||||
#define SINGLETON_DEFAULT_THREADING ::Loki::ClassLevelLockable
|
||||
#if defined(_WIN32) && (defined(CLASS_LEVEL_THREADING) || defined(OBJECT_LEVEL_THREADING))
|
||||
// threads only on windows
|
||||
#include <windows.h>
|
||||
#define DEFAULT_THREADING_NO_OBJ_LEVEL ::Loki::ClassLevelLockable
|
||||
#if defined(CLASS_LEVEL_THREADING)
|
||||
#define DEFAULT_THREADING ::Loki::ClassLevelLockable
|
||||
#else
|
||||
|
@ -23,6 +23,7 @@
|
|||
#endif
|
||||
#else
|
||||
#define DEFAULT_THREADING ::Loki::SingleThreaded
|
||||
#define DEFAULT_THREADING_NO_OBJ_LEVEL ::Loki::SingleThreaded
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
|
@ -76,6 +77,7 @@ namespace Loki
|
|||
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// class template ObjectLevelLockable
|
||||
// Implementation of the ThreadingModel policy used by various classes
|
||||
|
@ -224,6 +226,9 @@ namespace Loki
|
|||
#endif
|
||||
|
||||
// $Log$
|
||||
// Revision 1.12 2005/07/31 14:00:48 syntheticpp
|
||||
// make object level threading possible
|
||||
//
|
||||
// Revision 1.11 2005/07/28 14:26:09 syntheticpp
|
||||
// add cvs Header/Log
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue