Commit graph

888 commits

Author SHA1 Message Date
rich_sposato
c8f0564ebb Added documenation comments.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@798 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-19 22:58:15 +00:00
rich_sposato
d5ce57ee3b Added test for ScopeGuard.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@797 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-19 19:51:06 +00:00
clitte_bbt
35888376f1 enlightenment
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@796 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-18 19:29:30 +00:00
clitte_bbt
401fdba600 Optimizing the update of counters for the EvictAging policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@795 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-18 07:20:08 +00:00
clitte_bbt
d42dc485d9 CachedFactory destruction was leaking memory (cached objects were not deleted).
What to do with in use objects ? Deleting anyway for the moment but it might not be a good idea...
Any comments are welcome.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@794 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-17 21:02:00 +00:00
clitte_bbt
1e3c460b3c Adding a bit of documentation.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@793 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-17 16:43:55 +00:00
clitte_bbt
10f1b011c6 Integration of SmartPointer encapsulation policy for CachedFactory.
Once the smart pointer goes out of scope, the object is automatically returned to the Cache.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@792 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-17 14:59:06 +00:00
rich_sposato
97e1fd6b59 Moved Locker class out of LockedStorage to accomodate GCC compiler.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@791 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-15 01:36:29 +00:00
rich_sposato
6eabeea489 Added documentation comments for LockedStorage policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@790 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-29 19:16:39 +00:00
clitte_bbt
3b3153fd32 Using "using" in a header could lead to error in client code.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@789 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-27 20:45:39 +00:00
clitte_bbt
325c79f896 Making old and new Factory code more coherent.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@788 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-24 22:30:54 +00:00
syntheticpp
b072da9f73 clock/clock_t are not in std:: on msvc, fix wrong type of pure virtual functions
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@787 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-22 22:56:46 +00:00
syntheticpp
a62f5f4078 clock/clock_t are not in std:: on msvc
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@786 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-22 22:55:35 +00:00
clitte_bbt
7dc499a4e1 Adding several const, assert, and small optimizations
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@785 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-21 20:31:27 +00:00
rich_sposato
59bc51b565 Added test for LockedStorage policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@784 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-21 01:37:15 +00:00
rich_sposato
eb92853ac1 Added LockedStorage policy for feature 1441024.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@783 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-21 01:34:45 +00:00
rich_sposato
d560a3f491 Made Lock and Unlock functions public.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@782 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-21 01:32:26 +00:00
clitte_bbt
1ecc9448b9 Added caution about accuracy of the std::clock() function of RateLimitedPolicy under linux and Cygwin environnement.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@781 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-20 23:43:08 +00:00
clitte_bbt
f6e7714eca Added the getmilliSeconds() function for the WIN32 environnement.
_WIN32 & MinGW compiler uses std::clock()
_CYGWIN_ & linux compilers uses gettimeofday() implementation

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@780 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-20 23:41:15 +00:00
clitte_bbt
7dbb105cab linux std::clock is not precise enough. Changing to gettimeofday to retrieve ms precision.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@779 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-20 22:36:28 +00:00
syntheticpp
a9e96971c0 update
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@778 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-16 13:27:28 +00:00
syntheticpp
1a98988134 fix compiler error on the SUN, hope no compiler defines a upper case letter, thanks to Rob Yull
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@777 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-09 13:26:08 +00:00
syntheticpp
9f8c7ea485 also produce a verbose error message with gcc, make the macro more readable
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@776 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-09 13:12:57 +00:00
lfittl
f3aa021c9a - Compile libs of test/SingletonDll with -fPIC, fixes FTBFS on amd64
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@775 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-05 13:09:00 +00:00
rich_sposato
92daa47cbd Added comment explaining why ObjectLevelLockable policy does not work for singletons.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@774 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-03 00:52:31 +00:00
rich_sposato
337f50ba9d Added tests for ClassLevelLockable policy for SmallObject allocator.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@773 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-03 00:38:25 +00:00
rich_sposato
1743fd1da3 Added typedef so LockableTwoRefCounts uses thread-safe allocator.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@772 7ec92016-0320-0410-acc4-a06ded1c099a
2006-11-03 00:21:35 +00:00
clitte_bbt
228666b49c Added Doxygen documentation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@771 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-27 18:05:03 +00:00
syntheticpp
6060322298 Loki:: is now part of the macro
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@770 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-26 15:36:20 +00:00
syntheticpp
8f7c3b42d7 ove macro values into Loki namespace
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@769 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-26 10:58:19 +00:00
syntheticpp
f643f9a5d8 use recursive definition, it's more standard conform
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@768 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-25 20:40:40 +00:00
clitte_bbt
07d6c5d61f Added Doxygen documentation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@767 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-22 22:28:24 +00:00
syntheticpp
37f2743043 add empty definition to NeverMatched, the AIX compiler needs it, Thanks to Dieter Rosch
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@766 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-20 10:12:15 +00:00
syntheticpp
4c6d670e3d remove injected friends. Thanks to SIGOURE Benoit
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@765 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-18 13:55:32 +00:00
syntheticpp
ae6396a4cd add CachedFactoryTest to the msvc solution file
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@764 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 21:42:57 +00:00
syntheticpp
a6799d3f88 add copyright notice
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@763 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 21:10:41 +00:00
syntheticpp
56a49fa02f remove unnecessary svn:keywords
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@762 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:56:07 +00:00
syntheticpp
da502b99be no Log keyword any more, see also http://subversion.tigris.org/faq.html#log-in-source
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@761 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:48:18 +00:00
syntheticpp
a35442b5d1 subversion uses Id instead of Header
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@760 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:36:13 +00:00
syntheticpp
9b473fd7f2 remove keyword Revision, because there is no link to viewvs
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@759 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:27:29 +00:00
syntheticpp
dd07d070bf add keyword Id, test keyword Revision
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@758 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:25:48 +00:00
syntheticpp
acf45e6280 subversion uses Id instead of Header
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@757 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:15:36 +00:00
syntheticpp
85e43339c8 there is no svn keyword Log
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@756 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:05:42 +00:00
syntheticpp
73798da9f5 subversion uses Id instead of Header
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@755 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 20:02:15 +00:00
syntheticpp
b831f56c1f subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@754 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:59:11 +00:00
syntheticpp
3edfa0ba99 subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@753 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:54:22 +00:00
syntheticpp
20e6febd02 subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@752 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:52:18 +00:00
syntheticpp
d7111eb063 subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@751 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:50:37 +00:00
syntheticpp
3a9f56e73f subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@750 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:50:02 +00:00
syntheticpp
7a5fd28c6f subversion uses $ instead of $
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@749 7ec92016-0320-0410-acc4-a06ded1c099a
2006-10-17 19:49:26 +00:00