Commit graph

336 commits

Author SHA1 Message Date
rich_sposato
1651d21c5e Corrected inheritance for ownership policy.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@914 7ec92016-0320-0410-acc4-a06ded1c099a
2008-12-19 00:39:29 +00:00
syntheticpp
2d68004ddf fix GCC warning
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@911 7ec92016-0320-0410-acc4-a06ded1c099a
2008-12-15 20:55:24 +00:00
syntheticpp
e7d0d872f3 fix strange parenthesis
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@910 7ec92016-0320-0410-acc4-a06ded1c099a
2008-12-13 16:30:06 +00:00
syntheticpp
541c601909 add error policy to check return
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@908 7ec92016-0320-0410-acc4-a06ded1c099a
2008-12-10 20:22:40 +00:00
rich_sposato
c983337def Fixed variation of bug 2022935 by changing when functions check if strong-count is zero.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@904 7ec92016-0320-0410-acc4-a06ded1c099a
2008-11-10 05:59:59 +00:00
rich_sposato
464f643e19 Fixed bug 2082935 using overloaded version of AtomicDecrement.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@903 7ec92016-0320-0410-acc4-a06ded1c099a
2008-11-10 05:55:12 +00:00
rich_sposato
c661dfc348 Added several more atomic functions.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@902 7ec92016-0320-0410-acc4-a06ded1c099a
2008-11-10 05:47:06 +00:00
rich_sposato
19dd1dfe3d Added pre-conditions and post-conditions. Changed name of class.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@899 7ec92016-0320-0410-acc4-a06ded1c099a
2008-08-23 07:00:13 +00:00
syntheticpp
c6d6cada99 GCC 4.3 fixes, thanks to Tom Browder
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@898 7ec92016-0320-0410-acc4-a06ded1c099a
2008-08-09 15:35:12 +00:00
syntheticpp
1ca2df042d GCC 4.3 fixes: at least compile
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@897 7ec92016-0320-0410-acc4-a06ded1c099a
2008-08-08 22:53:19 +00:00
syntheticpp
683474eff9 fix line endings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@896 7ec92016-0320-0410-acc4-a06ded1c099a
2008-08-08 22:20:05 +00:00
syntheticpp
0c4789ee11 GCC 4.2 fixes
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@895 7ec92016-0320-0410-acc4-a06ded1c099a
2008-08-08 22:06:26 +00:00
syntheticpp
7db6328cb2 add solaris patch 1839286
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@869 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-15 20:28:06 +00:00
rich_sposato
60effd7682 Adding LevelMutex to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@846 7ec92016-0320-0410-acc4-a06ded1c099a
2008-05-25 04:07:53 +00:00
rich_sposato
a7e94f86a5 Adding Checker to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@842 7ec92016-0320-0410-acc4-a06ded1c099a
2008-05-25 00:57:28 +00:00
rich_sposato
9bc7fac1bf Added include statement.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@841 7ec92016-0320-0410-acc4-a06ded1c099a
2008-03-24 23:58:28 +00:00
rich_sposato
25ce12a718 Added lines to comment header about license.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@840 7ec92016-0320-0410-acc4-a06ded1c099a
2008-03-19 19:44:38 +00:00
rich_sposato
7dd3646382 Added more comments.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@839 7ec92016-0320-0410-acc4-a06ded1c099a
2008-03-19 18:39:50 +00:00
rich_sposato
434ddf8198 Added to comment.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@838 7ec92016-0320-0410-acc4-a06ded1c099a
2008-03-19 18:17:05 +00:00
rich_sposato
b6d6abd191 Adding class to wrap small object allocator for STL containers.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@837 7ec92016-0320-0410-acc4-a06ded1c099a
2008-03-19 18:02:49 +00:00
aandrei
3179302021 Bug fixes to flex_string submitted by Harmut Kaiser, Jean-Francois Bastien, and Andrew Barnert
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@836 7ec92016-0320-0410-acc4-a06ded1c099a
2007-09-20 15:51:37 +00:00
syntheticpp
b19393301f long long is not a standard type
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@835 7ec92016-0320-0410-acc4-a06ded1c099a
2007-08-02 19:39:02 +00:00
syntheticpp
a0268bf729 initialize static singleton data, thx to Peter Long
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@834 7ec92016-0320-0410-acc4-a06ded1c099a
2007-08-02 19:36:10 +00:00
syntheticpp
7375e1e987 long long is not a standard type
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@833 7ec92016-0320-0410-acc4-a06ded1c099a
2007-08-02 19:33:26 +00:00
clitte_bbt
3bb6ebaada Adding 64 bits types to StdUnsignedInts and StdSignedInts typedefs. It allows ParameterType to be defined for 64bits integer types.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@832 7ec92016-0320-0410-acc4-a06ded1c099a
2007-07-17 20:35:36 +00:00
syntheticpp
ec38e7236e fix docu
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@830 7ec92016-0320-0410-acc4-a06ded1c099a
2007-07-01 18:38:04 +00:00
syntheticpp
a39b59b243 fix docu
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@829 7ec92016-0320-0410-acc4-a06ded1c099a
2007-07-01 18:29:15 +00:00
syntheticpp
5e2237dcb0 add possibility to enable recursive mutex support for pthread
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@828 7ec92016-0320-0410-acc4-a06ded1c099a
2007-07-01 18:14:46 +00:00
syntheticpp
aab20bdd87 add missing parameter
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@825 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-22 19:19:01 +00:00
rich_sposato
b1a4b3a047 Added CheckReturn facility to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@824 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-09 00:57:06 +00:00
lfittl
214635bfc1 - Fixed build failures with gcc 4.3 pre-release
(http://bugs.debian.org/413432)


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@823 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-08 10:48:40 +00:00
rich_sposato
5767923ea5 Added documentation comment describing thread race condition.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@821 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-01 16:22:02 +00:00
rich_sposato
dcf9d7f1d8 Fixed bug 1668356 by making dtor inline and empty, and changing StrongPtr dtor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@818 7ec92016-0320-0410-acc4-a06ded1c099a
2007-03-07 00:28:17 +00:00
rich_sposato
1d13860d12 Added destructor to TwoRefCounts.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@814 7ec92016-0320-0410-acc4-a06ded1c099a
2007-03-01 01:23:22 +00:00
syntheticpp
4ab172fcf6 remove msvc8 warnings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@810 7ec92016-0320-0410-acc4-a06ded1c099a
2007-02-25 14:36:28 +00:00
syntheticpp
af68912216 move macro switched code into the header to fix linker errors.
By this we don't need special libraries for the
#if defined (LOKI_OBJECT_LEVEL_THREADING) || defined (LOKI_CLASS_LEVEL_THREADING)
case.



git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@807 7ec92016-0320-0410-acc4-a06ded1c099a
2007-02-25 12:49:19 +00:00
rich_sposato
6050c23d24 Added trivial bodies for assignment operators.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@806 7ec92016-0320-0410-acc4-a06ded1c099a
2007-02-03 00:01:52 +00:00
rich_sposato
015404028e Made GetPointer function protected to avoid exposing raw pointer. Added helper functions for comparison operators.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@804 7ec92016-0320-0410-acc4-a06ded1c099a
2007-01-12 19:13:38 +00:00
rich_sposato
68f59e4e58 Made functions protected instead of public.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@803 7ec92016-0320-0410-acc4-a06ded1c099a
2007-01-12 01:10:22 +00:00
clitte_bbt
347e1f95f8 STL guaranties that operator* and operator. are defined for iterators.
operator-> is added as a requirement by the ISO/ANSI commitee standarzing C++ from july 1995.
So old implementation might fail using operator-> on iterator.
Converting every "itr->first" into "(*itr).first"

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@802 7ec92016-0320-0410-acc4-a06ded1c099a
2007-01-03 21:50:07 +00:00
rich_sposato
f4e5e91794 Added more documenation comments. Added classes for functions with more parameters.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@799 7ec92016-0320-0410-acc4-a06ded1c099a
2006-12-20 00:37:13 +00:00
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
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