use new singleton lifetime policies
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@344 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
6c8b1660b4
commit
5bbe746eee
1 changed files with 5 additions and 2 deletions
|
@ -228,13 +228,13 @@ int main()
|
||||||
<< " DieOrder::Last policy " << endl
|
<< " DieOrder::Last policy " << endl
|
||||||
<< " and the derived Singleton has " << endl
|
<< " and the derived Singleton has " << endl
|
||||||
<< " DieOrder::First" << endl
|
<< " DieOrder::First" << endl
|
||||||
<< " This is tested by the DieOrderSingleton class." << endl
|
<< " This is tested by the DieFirstSingleton class." << endl
|
||||||
<< endl
|
<< endl
|
||||||
<< "3. Both SmallObject and derived Singleton use SingletonWithLongevity policy." << endl
|
<< "3. Both SmallObject and derived Singleton use SingletonWithLongevity policy." << endl
|
||||||
<< " This is tested by the LongLivedSingleton class." << endl
|
<< " This is tested by the LongLivedSingleton class." << endl
|
||||||
<< endl << endl
|
<< endl << endl
|
||||||
<< "If this program executes without crashing or asserting" << endl
|
<< "If this program executes without crashing or asserting" << endl
|
||||||
<< " at exit time, then all 3 policies work." << endl << endl;
|
<< "at exit time, then all 3 policies work." << endl << endl;
|
||||||
|
|
||||||
FollowerSingleton::Instance().DoThat();
|
FollowerSingleton::Instance().DoThat();
|
||||||
DieFirstSingleton::Instance().DoThat();
|
DieFirstSingleton::Instance().DoThat();
|
||||||
|
@ -250,6 +250,9 @@ int main()
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.5 2005/11/02 14:11:18 syntheticpp
|
||||||
|
// use new singleton lifetime policies
|
||||||
|
//
|
||||||
// Revision 1.4 2005/11/02 13:58:18 syntheticpp
|
// Revision 1.4 2005/11/02 13:58:18 syntheticpp
|
||||||
// use new singleton lifetime policies
|
// use new singleton lifetime policies
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue