mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Better tracking of resources associated with pathfinding.
This commit is contained in:
@@ -362,6 +362,8 @@ void PathRequest::updateAll (Ledger::ref ledger, bool newOnly, CancelCallback sh
|
|||||||
{
|
{
|
||||||
std::set<wptr> requests;
|
std::set<wptr> requests;
|
||||||
|
|
||||||
|
LoadEvent::autoptr event (getApp().getJobQueue().getLoadEventAP(jtPATH_FIND, "PathRequest::updateAll"));
|
||||||
|
|
||||||
{
|
{
|
||||||
StaticScopedLockType sl (sLock, __FILE__, __LINE__);
|
StaticScopedLockType sl (sLock, __FILE__, __LINE__);
|
||||||
requests = sRequests;
|
requests = sRequests;
|
||||||
|
|||||||
@@ -17,9 +17,12 @@ class RippleLineCache;
|
|||||||
#define PFR_PJ_NOCHANGE 0
|
#define PFR_PJ_NOCHANGE 0
|
||||||
#define PFR_PJ_CHANGE 1
|
#define PFR_PJ_CHANGE 1
|
||||||
|
|
||||||
class PathRequest : public boost::enable_shared_from_this<PathRequest>
|
class PathRequest : public boost::enable_shared_from_this<PathRequest>, public CountedObject <PathRequest>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
static char const* getCountedObjectName () { return "PathRequest"; }
|
||||||
|
|
||||||
typedef boost::weak_ptr<PathRequest> wptr;
|
typedef boost::weak_ptr<PathRequest> wptr;
|
||||||
typedef boost::shared_ptr<PathRequest> pointer;
|
typedef boost::shared_ptr<PathRequest> pointer;
|
||||||
typedef const pointer& ref;
|
typedef const pointer& ref;
|
||||||
|
|||||||
@@ -15,9 +15,12 @@ typedef boost::unordered_map <aciSource, unsigned int>::const_iterator curIssu
|
|||||||
extern std::size_t hash_value (const aciSource& asValue);
|
extern std::size_t hash_value (const aciSource& asValue);
|
||||||
|
|
||||||
// Holds a path state under incremental application.
|
// Holds a path state under incremental application.
|
||||||
class PathState
|
class PathState : public CountedObject <PathState>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
static char const* getCountedObjectName () { return "PathState"; }
|
||||||
|
|
||||||
class Node
|
class Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user