Commit graph

140 commits

Author SHA1 Message Date
rich_sposato
0860583a99 Added overloaded version of file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1182 7ec92016-0320-0410-acc4-a06ded1c099a
2012-04-03 05:45:23 +00:00
rich_sposato
f306c39e6e Overloaded functions for volatile to make better use of Memento and Loki::Checker.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1180 7ec92016-0320-0410-acc4-a06ded1c099a
2012-04-02 06:05:04 +00:00
rich_sposato
42786afc4b Fixed bug 3509427 by adding use of Loki::TypeTraits.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1179 7ec92016-0320-0410-acc4-a06ded1c099a
2012-04-02 06:01:51 +00:00
rich_sposato
07c621c3d4 Added Memento class to prove strong exception safety. Removed useless lines.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1176 7ec92016-0320-0410-acc4-a06ded1c099a
2011-11-07 23:55:30 +00:00
rich_sposato
0abd979412 Replaced local Checker with Loki::CheckFor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1162 7ec92016-0320-0410-acc4-a06ded1c099a
2011-10-22 00:20:09 +00:00
rich_sposato
62d74d47f8 Added functions that print directly to cout.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1160 7ec92016-0320-0410-acc4-a06ded1c099a
2011-10-21 23:09:48 +00:00
rich_sposato
a6028748b2 Added lines to make type of stdout clear to compiler.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1140 7ec92016-0320-0410-acc4-a06ded1c099a
2011-10-07 07:04:46 +00:00
rich_sposato
88ba6e783c Fixed bug 2694067.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1138 7ec92016-0320-0410-acc4-a06ded1c099a
2011-10-04 23:42:48 +00:00
rich_sposato
c8216caa6c Fix for bug 2694073. Added calls to reserve so append won't resize as often.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1137 7ec92016-0320-0410-acc4-a06ded1c099a
2011-10-04 20:48:36 +00:00
syntheticpp
647e6ff06a remove some GCC warnings and update Makefile
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1117 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-29 19:56:39 +00:00
rich_sposato
4ac9e4f44d Added text of MIT License.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1116 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-23 00:46:54 +00:00
rich_sposato
bec200e5f8 -m
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1112 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 23:25:41 +00:00
rich_sposato
ca6a94ac97 Back to revision 1109. Accidentally checked in more files than I intended.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1111 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 23:19:14 +00:00
rich_sposato
16094ffe39 A little cleanup. Moved class to SmartPtr.cpp and SmartPtr.h files.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1110 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 22:34:24 +00:00
rich_sposato
80a07d19e8 Added array handling to SmartPtr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1109 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 22:33:34 +00:00
rich_sposato
1d71c6b80f Added ability for StrongPtr to handle arrays.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1105 7ec92016-0320-0410-acc4-a06ded1c099a
2011-09-20 17:51:46 +00:00
rich_sposato
a381009fee Added 3 new policy classes to support single-owner smart
pointers.  Fixed 2 obscure bugs in TwoRefLinks policy.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1080 7ec92016-0320-0410-acc4-a06ded1c099a
2010-10-30 03:11:07 +00:00
rich_sposato
9c85634334 Used initialization instead of assignment within constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1076 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-16 17:26:29 +00:00
rich_sposato
ac54d187bc Replaced repeated calculation with local variable.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1075 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-16 17:23:59 +00:00
rich_sposato
d617910699 Used initialization instead of assignment within constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1074 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-16 17:22:53 +00:00
rich_sposato
92aa90cc6f Fixed bug 3061653 by adding code to check pointers to chunks before searching. Fixed bug 3061659 by checking for empty list.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1073 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-08 02:22:28 +00:00
rich_sposato
edac001bf0 Some coding style changes. Added namespace resolution.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1072 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-08 01:58:51 +00:00
rich_sposato
b82b7f94aa Put some code within Loki::Private namespace.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1071 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-08 01:03:21 +00:00
rich_sposato
1b9364270f Replaced NULL with nullptr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1070 7ec92016-0320-0410-acc4-a06ded1c099a
2010-09-08 00:48:29 +00:00
rich_sposato
ae4fbd418d Fixed bug using patch by ryants.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1068 7ec92016-0320-0410-acc4-a06ded1c099a
2010-03-15 06:03:01 +00:00
rich_sposato
9e3a736929 Implemented patch 2893162 to allow dynamic-casting with SmartPtr and StrongPtr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1052 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-10 19:22:16 +00:00
rich_sposato
f16c81d265 Moved thread_local macro code to separate header file. Added more error values to enum family.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1048 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 05:48:02 +00:00
rich_sposato
096a7d5841 Added ThreadLocal.h header file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1047 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 05:43:58 +00:00
rich_sposato
eddb08f4cf Project was missing some header files in include directory.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1041 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-11 05:31:02 +00:00
rich_sposato
d2af9cf1df Replaced sleep with usleep.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1027 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-01 17:54:38 +00:00
rich_sposato
8286c4e0b2 Changed #if statement used to decide to compile code.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1026 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-29 19:02:43 +00:00
rich_sposato
da01e0f541 Fixed bug 2656893. Removed redundant assertions.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@995 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-04 07:13:07 +00:00
rich_sposato
36f75e2dd5 Added yasli header files.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@979 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-31 07:30:36 +00:00
syntheticpp
9103a647c4 fix line endings
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@958 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-29 17:38:55 +00:00
syntheticpp
0c4b7983f8 Apple fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@951 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-26 19:58:04 +00:00
syntheticpp
797f97f415 Cygwin fixes: build with mingw 3.4.4 and 4.3.2
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@950 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-26 19:45:54 +00:00
rich_sposato
b45fb658ee Added MSVC9 project file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@940 7ec92016-0320-0410-acc4-a06ded1c099a
2009-01-21 07:32:15 +00:00
syntheticpp
1e72cc7149 gcc 4.2 fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@907 7ec92016-0320-0410-acc4-a06ded1c099a
2008-12-10 19:47:33 +00:00
rich_sposato
7b4782d75e Removed thread_local storage qualifier for GCC. Add ctor initializer for GCC.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@905 7ec92016-0320-0410-acc4-a06ded1c099a
2008-11-10 06:48:38 +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
rich_sposato
c48d2f7a84 Added LevelMutex files to project.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@893 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-24 23:14:17 +00:00
rich_sposato
4dbde4cd35 Upgraded file to MSVC 9.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@872 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-23 07:07:05 +00:00
rich_sposato
ee05791b21 Adding MSVC 8 files to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@870 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-23 02:12:05 +00:00
syntheticpp
f31e5b82f7 add hp-ux patch 1835801
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@868 7ec92016-0320-0410-acc4-a06ded1c099a
2008-07-15 20:19:23 +00:00
rich_sposato
996c78ec71 Adding LevelMutex to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@845 7ec92016-0320-0410-acc4-a06ded1c099a
2008-05-25 04:06:54 +00:00
lfittl
4ff2a48e5a Fixed makefiles for GNU/kFreeBSD, GNU/hurd
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@826 7ec92016-0320-0410-acc4-a06ded1c099a
2007-05-29 02:25:39 +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
0699d642fd Changed TwoRefCounts dtor and minor change to SmallObj.cpp code.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@819 7ec92016-0320-0410-acc4-a06ded1c099a
2007-03-07 00:30:12 +00:00
rich_sposato
5bc174ffce Added destructor to TwoRefCounts.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@815 7ec92016-0320-0410-acc4-a06ded1c099a
2007-03-01 01:23:48 +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