General refactoring, using C++11

* Remove broken RecycledObjectPool

* Fix beast::ServiceQueue using List instead of LockFreeStack

* Add class semaphore, fixes broken Semaphore

* Move crytpo module files to new beast directory

* Use c++11 replacements for boost and beast types:
  - std::atomic instead of beast::Atomic
  - std::function instead of boost::function, beast::function
  - std::unique_ptr instead of beast::ScopedPointer
  - std::shared_ptr instead of boost::shared_ptr

* Remove modules:
  - beast_db
  - beast_crypto
  - beast_extras

* Remove unnecessary classes:
  - AbstractFifo
  - AddConst
  - AtomicCounter
  - AtomicFlag
  - AtomicPointer
  - AtomicState
  - CopyConst
  - Expression
  - ForwardList
  - IfCond
  - Interval
  - IntrusiveArray
  - KeyvaDB
  - PointerToOther
  - PointerTraits
  - RemoveConst
  - RemoveConstVolatile
  - RemoveReference
  - RemoveVolatile
  - SharedObjectArray
  - SingleThreadedSharedObject
  - SophiaDB factory
  - SortedSet
  - WeakReference
  - beast::unique_ptr
This commit is contained in:
Vinnie Falco committed 2014-01-07 15:57:45 -08:00
1 parent 3a895ccfaa
commit 496b337b27
82 files changed
+396 -7789

No files matched your search

+7 -7
View File
@@ -112,27 +112,27 @@ public:
Hook make_hook (HookImpl::HandlerType const&)
{
return Hook (make_shared <detail::NullHookImpl> ());
return Hook (std::make_shared <detail::NullHookImpl> ());
}
Counter make_counter (std::string const&)
{
return Counter (make_shared <detail::NullCounterImpl> ());
return Counter (std::make_shared <detail::NullCounterImpl> ());
}
Event make_event (std::string const&)
{
return Event (make_shared <detail::NullEventImpl> ());
return Event (std::make_shared <detail::NullEventImpl> ());
}
Gauge make_gauge (std::string const&)
{
return Gauge (make_shared <detail::NullGaugeImpl> ());
return Gauge (std::make_shared <detail::NullGaugeImpl> ());
}
Meter make_meter (std::string const&)
{
return Meter (make_shared <detail::NullMeterImpl> ());
return Meter (std::make_shared <detail::NullMeterImpl> ());
}
};
@@ -140,9 +140,9 @@ public:
//------------------------------------------------------------------------------
shared_ptr <Collector> NullCollector::New ()
std::shared_ptr <Collector> NullCollector::New ()
{
return beast::make_shared <detail::NullCollectorImp> ();
return std::make_shared <detail::NullCollectorImp> ();
}
}