peer_sourcehash.cc File Reference
#include "squid.h"
#include "CachePeer.h"
#include "HttpRequest.h"
#include "mgr/Registration.h"
#include "neighbors.h"
#include "SquidConfig.h"
#include "Store.h"
#include <cmath>
Include dependency graph for peer_sourcehash.cc:

Go to the source code of this file.

Macros

#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
 

Functions

static void peerSourceHashRegisterWithCacheManager (void)
 
static int peerSortWeight (const void *a, const void *b)
 
void peerSourceHashInit (void)
 
CachePeerpeerSourceHashSelectParent (HttpRequest *request)
 
static void peerSourceHashCachemgr (StoreEntry *sentry)
 

Variables

static int n_sourcehash_peers = 0
 
static CachePeer ** sourcehash_peers = NULL
 
static OBJH peerSourceHashCachemgr
 

Macro Definition Documentation

#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32-(n))))

Definition at line 21 of file peer_sourcehash.cc.

Referenced by peerSourceHashInit(), and peerSourceHashSelectParent().

Function Documentation

static int peerSortWeight ( const void *  a,
const void *  b 
)
static

Definition at line 29 of file peer_sourcehash.cc.

References CachePeer::weight.

Referenced by peerSourceHashInit().

static void peerSourceHashCachemgr ( StoreEntry sentry)
static
static void peerSourceHashRegisterWithCacheManager ( void  )
static

Definition at line 137 of file peer_sourcehash.cc.

References peerSourceHashCachemgr, and Mgr::RegisterAction().

Referenced by peerSourceHashInit().

Variable Documentation

int n_sourcehash_peers = 0
static

Definition at line 23 of file peer_sourcehash.cc.

Referenced by peerSourceHashInit(), and peerSourceHashSelectParent().

OBJH peerSourceHashCachemgr
static

Definition at line 25 of file peer_sourcehash.cc.

Referenced by peerSourceHashRegisterWithCacheManager().

CachePeer** sourcehash_peers = NULL
static

Definition at line 24 of file peer_sourcehash.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors