Commit graph

1137 commits

Author SHA1 Message Date
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
5b98f92405 Added ThreadLocal.h header file.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1046 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 05:37:41 +00:00
rich_sposato
c447453a8b Added new header to Loki.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1045 7ec92016-0320-0410-acc4-a06ded1c099a
2009-11-02 05:34:21 +00:00
rich_sposato
c74e851a38 Renamed Unlocker to remove compiler warning. Changed function calls for sleeping.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1044 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-16 06:00:40 +00:00
rich_sposato
65949024b3 Renamed Unlocker to remove compiler warning.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1043 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-16 05:54:12 +00:00
rich_sposato
7d52fcdeb9 Changed some project settings.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1042 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-11 05:35:15 +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
bddc811650 Minor changes to project settings.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1040 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-11 05:26:46 +00:00
rich_sposato
6cc7597d5c Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1039 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:56:26 +00:00
rich_sposato
47bb08d2de Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1038 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:54:57 +00:00
rich_sposato
46547199cf Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1037 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:53:07 +00:00
rich_sposato
9d86b1d4aa Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1036 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:51:27 +00:00
rich_sposato
840a40dce1 Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1035 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:49:40 +00:00
rich_sposato
3bdf75ff9b Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1034 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:47:49 +00:00
rich_sposato
e383589380 Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1033 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:45:58 +00:00
rich_sposato
b465c6ad49 Added new configurations to differentiate between cygwin-gcc and gnu-gcc.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1032 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:43:02 +00:00
rich_sposato
37a4de176f Changed main declaration to remove GCC warning.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1031 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:11:31 +00:00
rich_sposato
6e978472dd Added include statements and changed main() declaration.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1030 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-10 23:09:23 +00:00
rich_sposato
d723342f30 Changed functions in all policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1029 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-07 00:41:02 +00:00
rich_sposato
6281fa4bef Changed functions in ownership policies from public to protected.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1028 7ec92016-0320-0410-acc4-a06ded1c099a
2009-10-07 00:28:23 +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
bd84a726a9 Added test for pointer to const object.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1025 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 23:49:05 +00:00
rich_sposato
81b896f459 Replaced assert( IsValid() ) with checker's call to IsValid.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1024 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 23:07:10 +00:00
rich_sposato
cbf7550f08 Added year to copyright notice.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1023 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 21:10:43 +00:00
rich_sposato
350065c291 Fixed bug 2789197 by adding include statement.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1022 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 21:03:36 +00:00
rich_sposato
1663a0b30b Fixed bug 2803535 by adding const qualifier.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1021 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 20:43:11 +00:00
rich_sposato
2d6266ba0b Added explicit qualifier to constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1020 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 20:28:24 +00:00
rich_sposato
c1f17ce2f0 Fixed bug 2831440 by making constructors explicit.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1019 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 20:27:34 +00:00
rich_sposato
9b083bd028 Added tests which compare host to memento.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1018 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 19:42:09 +00:00
rich_sposato
76aeea2390 Added ability to compare host to memento.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1017 7ec92016-0320-0410-acc4-a06ded1c099a
2009-09-26 19:40:20 +00:00
syntheticpp
fa3743d524 undo removing warning.
https://sourceforge.net/forum/message.php?msg_id=7564865

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1016 7ec92016-0320-0410-acc4-a06ded1c099a
2009-08-16 20:33:52 +00:00
syntheticpp
c8bd6f516f fix bug
https://sourceforge.net/tracker/?func=detail&atid=396644&aid=2807089&group_id=29557

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1015 7ec92016-0320-0410-acc4-a06ded1c099a
2009-08-16 20:29:58 +00:00
rich_sposato
2817d41081 Added tests for comparison operators for SmartPtr.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1014 7ec92016-0320-0410-acc4-a06ded1c099a
2009-04-11 06:02:59 +00:00
rich_sposato
a1d74d7725 Fixed bug 2747377 by changing order of operands.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1013 7ec92016-0320-0410-acc4-a06ded1c099a
2009-04-11 06:01:06 +00:00
rich_sposato
e35ba7770e Added structs to declare typedefs for various exception policies.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1012 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-31 21:56:08 +00:00
jfbastien
433534f136 Bug 2690414: flex_string missing swap implementation
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1011 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-17 18:21:12 +00:00
jfbastien
b1e0c16582 Copy/paste mistake.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1010 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 15:17:59 +00:00
jfbastien
b170379f32 Bug 2686155: flex_string is missing input_iterator methods
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1009 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 13:54:51 +00:00
jfbastien
a2e99a55dd Cosmetic: remove trailing spaces.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1008 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 12:07:15 +00:00
jfbastien
a251ebcc12 Bug 2665120: flex_string fatal error assigning big string to small
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1007 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-13 11:39:47 +00:00
jfbastien
0174e55298 Bug 2684989: flex_string insert char fails with SmallStringOpt
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1006 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-12 12:28:58 +00:00
jfbastien
208bbae624 Bug 2679853: flex_string cannot insert from current string.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1005 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-11 17:58:49 +00:00
jfbastien
7b99eeed7b Add note on bug #2679853.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1004 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 19:58:26 +00:00
jfbastien
8642f606d9 Simplify Num2String.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1003 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 19:55:59 +00:00
jfbastien
a27150df64 Refactor some more, and add a bunch of tests. These new tests led me to find bug #2679853.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1002 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-10 18:36:42 +00:00
jfbastien
12a3a50e8e Bug #2666059: cap buffer size to 126.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1001 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 22:04:56 +00:00
jfbastien
a34780ce1e Cache call to size() in find(): it wasn't being optimized out.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1000 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 21:12:02 +00:00
jfbastien
2d56e06cff Add a small string optimization test with a buffer of 126.
Cache size() outside the loop for RandomString.
Modify Num2String so that npos is properly taken into account.
Add Tristate2String.
Modify seedForThisIteration so that its value is count + rand() instead of just rand(): using just rand meant that a lot of the initial seeds repeated because the pseudo-randomness of rand isn't good. Adding count should somewhat reduce the repetitions.
I'd consider using another random number generator, rand() is slow and has a bad distribution.


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@999 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 21:09:20 +00:00
jfbastien
8d792783e0 Use MaxString<String>::value instead of 1000.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@998 7ec92016-0320-0410-acc4-a06ded1c099a
2009-03-05 16:13:57 +00:00