new macros for default threading
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@190 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c85f9b568f
commit
2c7b241eaf
1 changed files with 18 additions and 8 deletions
|
@ -9,16 +9,24 @@
|
|||
// affects only default template arguments
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Last update: June 20, 2001
|
||||
// $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(CLASS_LEVEL_THREADING)
|
||||
#define DEFAULT_THREADING ::Loki::ClassLevelLockable
|
||||
#else
|
||||
#define DEFAULT_THREADING ::Loki::ObjectLevelLockable
|
||||
#endif
|
||||
#else
|
||||
#define DEFAULT_THREADING ::Loki::SingleThreaded
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
||||
|
||||
#ifndef DEFAULT_THREADING
|
||||
#define DEFAULT_THREADING /**/ ::Loki::SingleThreaded
|
||||
#endif
|
||||
|
||||
namespace Loki
|
||||
{
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -66,7 +74,7 @@ namespace Loki
|
|||
{ lval = val; }
|
||||
};
|
||||
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H) // && defined(__WIN32)
|
||||
#if defined(_WINDOWS_) || defined(_WINDOWS_H)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// class template ObjectLevelLockable
|
||||
|
@ -212,5 +220,7 @@ namespace Loki
|
|||
// July 26, 2005: some asserts by Peter Kümmel
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// $Log:
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue