Commit Graph

12 Commits (9edad026f4494de1a6f02ecc3f477faa27a361ef)

Author SHA1 Message Date
Nicky 155a5e4cd4 After input from Nat:
- Rename LLAtomic to LLAtomicBase
- LLAtomicBase has now only one required argument, the type to wrap. The other will be deduced as std::atomic< Type > if not supplied.
- I did notice the forward declaration in llapp.h was not used, so away with it.
2018-04-06 00:11:57 +02:00
Nicky 03c79ba6cb Remove apr from LLAtomic32 and rather use std::atomic and thus rename the class to a more generic name of LLAtomic
The apr atomics had been problematic as no one ever did bother to call apr_atomic_init. This:
- either did lead to crashes if apr was compiled to use a mutex for thread safe variable intialisation
- or initialisation was okay, but apr did not synchronize setting the *pointer to a value.
2018-04-05 00:35:23 +02:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Richard Linden 99e29b8340 crash fix - bad handling of instancetracker iterators 2013-10-18 13:10:40 -07:00
Richard Linden 0a96b47663 merge with viewer-release 2013-06-05 19:05:43 -07:00
Richard Linden cc7d92147c SH-4080 WIP interesting: random crash on Mac
removed unused dll support from llinstancetracker as it didn't appear to be thread safe
2013-04-19 20:09:00 -07:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Richard Linden 3fd640a6e3 SH-3468 WIP add memory tracking base class
fixed crash on exit by making LLInstanceTracker iterators use atomic iterator
nesting count for thread safety
2012-12-23 12:27:25 -08:00
Nat Goodspeed 8c6f752982 STORM-1541: Hoist LLInstanceTracker::getMap_() to base getStatic().
Generalize the notion of getting some chunk of "static" storage: introduce
LLInstanceTrackerBase::getStatic() template method. Define StaticData struct
containing the InstanceMap (or InstanceSet, for that specialization) along
with the S32 that caused the VS2010 linker so much grief. Completely eliminate
that S32 as an actual class-static member, qualifying all references with the
struct returned by getStatic().
In LLInstanceTrackerBase::getInstances(), use one std::map lookup instead of
three.
2011-09-06 22:07:49 -04:00
brad kittenbrink b9a9b0017d Fix for "doubleton" error using LLInstanceTracker across shared library boundaries. 2011-03-09 17:01:08 -08:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04:00
Tofu Linden 346cabd557 make the instancetracker unit test really, like, work. before I fiddle with a big pile of stuff. 2010-02-06 21:03:55 +00:00