From 17de92e41fa3b9761d1e668f0aecc412053175b2 Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Wed, 1 Mar 2006 14:44:38 +0000 Subject: [PATCH] add documenation, correct cvs keyword git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@576 7ec92016-0320-0410-acc4-a06ded1c099a --- test/SingletonDll/client.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/SingletonDll/client.cpp b/test/SingletonDll/client.cpp index 4f2c06c..bce091c 100755 --- a/test/SingletonDll/client.cpp +++ b/test/SingletonDll/client.cpp @@ -10,12 +10,26 @@ // without express or implied warranty. //////////////////////////////////////////////////////////////////////////////// -// $Header: +// $Header$ +/* + +Test for singletons in a shared libraries: + +- there is a Foo class in Foo.dll/so +- there is a Foo singleton object which is exported by SingletonDll.dll/so +- the Foo singleton object is managed by a Loki::SingletonHolder typedef +- the declaration of the Loki::SingletonHolder type is visiable only + in singletondll.cpp +- a client (this file) imports the singleton object from SingletonDll.dll/so + +*/ #include "singletondll.h" #include "foo.h" + + int main() { Foo& foo = Singleton::Instance();