- Jul 11, 2021
-
-
Rye Mutt authored
-
- Jan 31, 2021
-
-
Rye Mutt authored
-
- Sep 26, 2020
-
-
Rye Mutt authored
-
- Sep 25, 2020
-
-
- Sep 18, 2020
-
-
Andrey Kleshchev authored
-
- Sep 17, 2020
-
-
Andrey Kleshchev authored
-
- Jul 29, 2020
-
-
Rye Mutt authored
-
- Jul 05, 2020
-
-
Rye Mutt authored
-
- Mar 25, 2020
-
-
Nat Goodspeed authored
The previous implementation went to some effort to crash if anyone attempted to create or destroy an LLInstanceTracker subclass instance during traversal. That restriction is manageable within a single thread, but becomes unworkable if it's possible that a given subclass might be used on more than one thread. Remove LLInstanceTracker::instance_iter, beginInstances(), endInstances(), also key_iter, beginKeys() and endKeys(). Instead, introduce key_snapshot() and instance_snapshot(), the only means of iterating over LLInstanceTracker instances. (These are intended to resemble functions, but in fact the current implementation simply presents the classes.) Iterating over a captured snapshot defends against container modifications during traversal. The term 'snapshot' reminds the coder that a new instance created during traversal will not be considered. To defend against instance deletion during traversal, a snapshot stores std::weak_ptrs which it lazily dereferences, skipping on the fly any that have expired. Dereferencing instance_snapshot::iterator gets you a reference rather than a pointer. Because some use cases want to delete all existing instances, add an instance_snapshot::deleteAll() method that extracts the pointer. Those cases used to require explicitly copying instance pointers into a separate container; instance_snapshot() now takes care of that. It remains the caller's responsibility to ensure that all instances of that LLInstanceTracker subclass were allocated on the heap. Replace unkeyed static LLInstanceTracker::getInstance(T*) -- which returned nullptr if that instance had been destroyed -- with new getWeak() method returning std::weak_ptr<T>. Caller must detect expiration of that weak_ptr. Adjust tests accordingly. Use of std::weak_ptr to detect expired instances requires engaging std::shared_ptr in the constructor. We now store shared_ptrs in the static containers (std::map for keyed, std::set for unkeyed). Make LLInstanceTrackerBase a template parameterized on the type of the static data it manages. For that reason, hoist static data class declarations out of the class definitions to an LLInstanceTrackerStuff namespace. Remove the static atomic sIterationNestDepth and its methods incrementDepth(), decrementDepth() and getDepth(), since they were used only to forbid creation and destruction during traversal. Add a std::mutex to static data. Introduce an internal LockStatic class that locks the mutex while providing a pointer to static data, making that the only way to access the static data. The LLINSTANCETRACKER_DTOR_NOEXCEPT macro goes away because we no longer expect ~LLInstanceTracker() to throw an exception in test programs. That affects LLTrace::StatBase as well as LLInstanceTracker itself. Adapt consumers to the new LLInstanceTracker API.
-
- Mar 19, 2020
-
-
Rye Mutt authored
-
- Mar 13, 2020
-
-
Rye Mutt authored
-
- Aug 10, 2019
-
-
andreykproductengine authored
-
- Nov 10, 2015
-
-
Oz Linden authored
-
- Oct 17, 2014
-
-
callum_linden authored
Update to build on Xcode 6.0: collection of removal of unused const variables [-Wunused-const-variable]
-
- Apr 30, 2013
-
-
Graham Madarasz authored
-
- Mar 29, 2013
-
-
Graham Madarasz authored
-
- Mar 12, 2013
-
-
Graham Madarasz authored
-
- Oct 10, 2012
-
-
Don Kjer authored
-
- Jul 26, 2011
-
-
Richard Nelson authored
EXP-1021 FIX Position of web content browser dictates position of profile panel - profile panel position changes do not persist EXP-1030 FIX Search button toggle can get out of synch in bottom bar made llinstancetracker::iterator do own nested level management (removing need for separate guard) added support for filename= to floaters can pass in arbitrary window_class to floaters
-
- Jun 15, 2011
-
-
Jonathan Yap authored
-
- Oct 13, 2010
-
-
Oz Linden authored
-
- Sep 21, 2010
-
-
Brad Payne (Vir Linden) authored
-
- Aug 13, 2010
-
-
Oz Linden authored
-
- Feb 17, 2010
-
-
Palmer authored
-
- Feb 10, 2010
- Feb 02, 2010
-
-
Mark Palange (Mani) authored
-
- Jan 29, 2010
-
-
Tofu Linden authored
Checker: UNINIT_CTOR Function: LLConsole::LLConsole(const LLConsole::Params &) File: /indra/llui/llconsole.cpp
-
- Jan 08, 2010
-
-
James Cook authored
Optimized LLFolderViewItem constructor by passing param block as const ref to avoid copies. Removed per-item arrow and background images, use defaults. Removed unneeded static image pointers. Removed hard-coded rounded_square.tga, replaced with Rounded_Square Ditto for folder_arrow.tga Reviewed with Richard.
-
- Jan 06, 2010
-
-
richard authored
fixes regression introduced in 3eef5ce9ae1e6fc62b9b52ce859501dd4e70fadf reviewed by Brad
-
richard authored
EXT-3647 - Auto-scrolling of IMs should resume when user types in chat EXT-3877 - Pinning two levels of menus prevents movement using arrow keys EXT-1303 - Hyperlink text wraps in the middle of a word reviewed by James
-
- Jan 04, 2010
-
-
Tofu Linden authored
-
- Nov 24, 2009
-
-
Bryan O'Sullivan authored
-
- Nov 09, 2009
-
-
richard authored
EXT-1219 Side tray slide-out animation cleaned up some layout of bottom tray contents reviewed by James
-
- Oct 15, 2009
-
-
Steve Bennetts authored
Added getFontDefault() to llfontgl.h --HG-- branch : branch-test
-
- Oct 03, 2009
-
-
James Cook authored
Merge inspectors UI project, gooey-4, into viewer-2 trunk. Added new tooltips to 3D avatars, 2D avatar names, and 3D objects. Refactors tooltips and text boxes, line editors, and text editors. Breaks LLExpandableTextBox, but a fix is coming. Resolved conflicts in lltexteditor.cpp, llchatitemscontainerctrl.cpp, llchatmsgbox.cpp, llfloaterbuycurrency.cpp, llnearbychat.cpp, floater_buy_currency.xml, and ru/strings.xml Merging revisions 134925-135157 of svn+ssh://svn.lindenlab.com/svn/linden/branches/gooey/gooey-4 into C:\source\viewer-2.0.0-3, respecting ancestry
-
- Jul 06, 2009
-
-
James Cook authored
Merge xui-army-5 to viewer-2, includes layout, art, and color changes, also UI color refactoring and new FreeType font library on Linux. svn merge -r126038:126164 svn+ssh://svn.lindenlab.com/svn/linden/branches/skinning/xui-army-5
-
- Jun 21, 2009
-
-
Steven Bennetts authored
ignore-dead-branch
-
- May 08, 2009
-
-
Steven Bennetts authored
-