use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@345 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
5bbe746eee
commit
8d8988f5c0
1 changed files with 7 additions and 1 deletions
|
@ -33,10 +33,13 @@ using namespace std;
|
|||
typedef Loki::SmallValueObject< LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL,
|
||||
LOKI_DEFAULT_CHUNK_SIZE, LOKI_MAX_SMALL_OBJECT_SIZE,
|
||||
LOKI_DEFAULT_OBJECT_ALIGNMENT,
|
||||
Loki::FollowIntoDeath::With<Loki::DefaultLifetime>::AsMasterLifetime // this is default
|
||||
Loki::FollowIntoDeath::With<Loki::DefaultLifetime>::AsMasterLifetime
|
||||
>
|
||||
MasterObject;
|
||||
|
||||
// this is default so you could also use:
|
||||
// typedef Loki::SmallValueObject<> MasterObject;
|
||||
|
||||
class FollowerSingleton : public MasterObject
|
||||
{
|
||||
public:
|
||||
|
@ -250,6 +253,9 @@ int main()
|
|||
// ----------------------------------------------------------------------------
|
||||
|
||||
// $Log$
|
||||
// Revision 1.6 2005/11/02 14:15:44 syntheticpp
|
||||
// use new singleton lifetime policies
|
||||
//
|
||||
// Revision 1.5 2005/11/02 14:11:18 syntheticpp
|
||||
// use new singleton lifetime policies
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue