Remove obsolete classes:

Legacy workarounds for Visual Studio non thread-safe initialization
of function local objects with static storage duration are removed:

* Remove LeakChecked
* Remove StaticObject
* Remove SharedSingleton
This commit is contained in:
Vinnie Falco
2015-02-11 10:39:08 -08:00
committed by Tom Ritchford
parent 11c472d701
commit df89999891
24 changed files with 39 additions and 676 deletions

View File

@@ -17,8 +17,9 @@
*/
//==============================================================================
namespace beast
{
#include <beast/utility/static_initializer.h>
namespace beast {
// Manages the list of hooks, and calls
// whoever is in the list at exit time.
@@ -33,7 +34,9 @@ public:
static inline Manager& get ()
{
return StaticObject <Manager>::get();
static beast::static_initializer<
Manager> instance;
return *instance;
}
void insert (Item& item)
@@ -73,10 +76,6 @@ private:
AtExitHook* const hook (item.hook ());
hook->onExit ();
}
// Now do the leak checking
//
LeakCheckedBase::checkForLeaks ();
}
struct StaticDestructor