mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
* 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
92 lines
2.5 KiB
C++
92 lines
2.5 KiB
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
This file is part of rippled: https://github.com/ripple/rippled
|
|
Copyright (c) 2012, 2013 Ripple Labs Inc.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef RIPPLE_BASICS_H_INCLUDED
|
|
#define RIPPLE_BASICS_H_INCLUDED
|
|
|
|
#include "beast/modules/beast_core/beast_core.h"
|
|
#include "beast/beast/Crypto.h"
|
|
|
|
#include "beast/modules/beast_core/system/BeforeBoost.h"
|
|
#include "system/BoostIncludes.h"
|
|
|
|
#include "../../beast/beast/Utility.h"
|
|
|
|
#include <atomic>
|
|
|
|
#ifndef RIPPLE_TRACK_MUTEXES
|
|
# define RIPPLE_TRACK_MUTEXES 0
|
|
#endif
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// From
|
|
// http://stackoverflow.com/questions/4682343/how-to-resolve-conflict-between-boostshared-ptr-and-using-stdshared-ptr
|
|
//
|
|
#if __cplusplus > 201100L
|
|
namespace boost
|
|
{
|
|
template <class T>
|
|
const T* get_pointer (std::shared_ptr<T> const& ptr)
|
|
{
|
|
return ptr.get();
|
|
}
|
|
|
|
template <class T>
|
|
T* get_pointer (std::shared_ptr<T>& ptr)
|
|
{
|
|
return ptr.get();
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#include "../ripple/types/ripple_types.h"
|
|
|
|
namespace ripple
|
|
{
|
|
|
|
using namespace beast;
|
|
|
|
#include "types/BasicTypes.h"
|
|
|
|
# include "log/LogSeverity.h"
|
|
# include "log/LogFile.h"
|
|
# include "log/LogSink.h"
|
|
# include "log/LogPartition.h"
|
|
# include "log/Log.h"
|
|
#include "log/LoggedTimings.h"
|
|
|
|
#include "utility/CountedObject.h"
|
|
#include "utility/IniFile.h"
|
|
#include "utility/PlatformMacros.h"
|
|
#include "utility/StringUtilities.h"
|
|
#include "utility/Sustain.h"
|
|
#include "utility/ThreadName.h"
|
|
#include "utility/Time.h"
|
|
#include "utility/UptimeTimer.h"
|
|
|
|
#include "containers/KeyCache.h"
|
|
#include "containers/RangeSet.h"
|
|
#include "containers/BlackList.h"
|
|
#include "containers/TaggedCache.h"
|
|
|
|
}
|
|
|
|
#endif
|