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
|
@ -76,8 +76,7 @@ namespace
|
|||
typedef SingletonHolder<MyClass<19>, CreateStatic, SingletonWithLongevity, SingleThreaded> t19;
|
||||
typedef SingletonHolder<MyClass<20>, CreateStatic, NoDestroy, SingleThreaded> t20;
|
||||
|
||||
//#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__MWERKS__)
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H) // && defined(__WIN32)
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H)
|
||||
|
||||
typedef SingletonHolder<MyClass<5>, CreateUsingNew, DefaultLifetime, ClassLevelLockable> t5;
|
||||
typedef SingletonHolder<MyClass<6>, CreateUsingNew, PhoenixSingleton, ClassLevelLockable> t6;
|
||||
|
@ -127,8 +126,8 @@ public:
|
|||
MAKE_TEST(t19)
|
||||
MAKE_TEST(t20)
|
||||
|
||||
//#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__MWERKS__)
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H) // && defined(__WIN32)
|
||||
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H)
|
||||
|
||||
MAKE_TEST(t5)
|
||||
MAKE_TEST(t6)
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
# pragma warning(disable: 4018 4097 4100 4213 4290 4512 4514 4700 4702 4710 4786 4800)
|
||||
#endif
|
||||
|
||||
#define CLASS_LEVEL_THREADING
|
||||
//#define CLASS_LEVEL_THREADING
|
||||
#define OBJECT_LEVEL_THREADING
|
||||
|
||||
// Some platforms might have difficulty with this
|
||||
// Need to ifdef around those cases.
|
||||
|
@ -108,7 +109,9 @@ return result;
|
|||
|
||||
|
||||
// $Log$
|
||||
// Revision 1.15 2005/07/31 14:00:48 syntheticpp
|
||||
// make object level threading possible
|
||||
//
|
||||
// Revision 1.14 2005/07/28 14:26:10 syntheticpp
|
||||
// add cvs Header/Log
|
||||
//
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue