Tracker: style fixes to PendingNodeMonitorCache
This commit is contained in:
@@ -44,9 +44,10 @@ const bigtime_t kDelayedNodeMonitorLifetime = 10000000;
|
|||||||
|
|
||||||
PendingNodeMonitorEntry::PendingNodeMonitorEntry(const node_ref* node,
|
PendingNodeMonitorEntry::PendingNodeMonitorEntry(const node_ref* node,
|
||||||
const BMessage* nodeMonitor)
|
const BMessage* nodeMonitor)
|
||||||
: fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime),
|
:
|
||||||
fNodeMonitor(*nodeMonitor),
|
fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime),
|
||||||
fNode(*node)
|
fNodeMonitor(*nodeMonitor),
|
||||||
|
fNode(*node)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +74,8 @@ PendingNodeMonitorEntry::TooOld(bigtime_t now) const
|
|||||||
|
|
||||||
|
|
||||||
PendingNodeMonitorCache::PendingNodeMonitorCache()
|
PendingNodeMonitorCache::PendingNodeMonitorCache()
|
||||||
: fList(10, true)
|
:
|
||||||
|
fList(10, true)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,14 +39,13 @@ All rights reserved.
|
|||||||
// The respective node montior messages are stored in a list and applied
|
// The respective node montior messages are stored in a list and applied
|
||||||
// later, when their target shows up. They get nuked when they become too
|
// later, when their target shows up. They get nuked when they become too
|
||||||
// old.
|
// old.
|
||||||
#ifndef __PENDING_NODEMONITOR_CACHE_H__
|
#ifndef _PENDING_NODE_MONITOR_CACHE_H
|
||||||
#define __PENDING_NODEMONITOR_CACHE_H__
|
#define _PENDING_NODE_MONITOR_CACHE_H
|
||||||
|
|
||||||
|
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
#include <Node.h>
|
#include <Node.h>
|
||||||
|
#include <ObjectList.h>
|
||||||
#include "ObjectList.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
@@ -67,7 +66,6 @@ private:
|
|||||||
node_ref fNode;
|
node_ref fNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class PendingNodeMonitorCache {
|
class PendingNodeMonitorCache {
|
||||||
public:
|
public:
|
||||||
PendingNodeMonitorCache();
|
PendingNodeMonitorCache();
|
||||||
@@ -87,4 +85,5 @@ private:
|
|||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
#endif // __PENDING_NODEMONITOR_CACHE_H__
|
|
||||||
|
#endif // _PENDING_NODE_MONITOR_CACHE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user