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

Go to the source code of this file.

Macros

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

Functions

static void peerUserHashRegisterWithCacheManager (void)
 
static int peerSortWeight (const void *a, const void *b)
 
void peerUserHashInit (void)
 
CachePeerpeerUserHashSelectParent (HttpRequest *request)
 
static void peerUserHashCachemgr (StoreEntry *sentry)
 

Variables

static int n_userhash_peers = 0
 
static CachePeer ** userhash_peers = NULL
 
static OBJH peerUserHashCachemgr
 

Macro Definition Documentation

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

Definition at line 26 of file peer_userhash.cc.

Referenced by peerUserHashInit(), and peerUserHashSelectParent().

Function Documentation

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

Definition at line 34 of file peer_userhash.cc.

References CachePeer::weight.

Referenced by peerUserHashInit().

static void peerUserHashCachemgr ( StoreEntry sentry)
static
static void peerUserHashRegisterWithCacheManager ( void  )
static

Definition at line 142 of file peer_userhash.cc.

References peerUserHashCachemgr, and Mgr::RegisterAction().

Referenced by peerUserHashInit().

Variable Documentation

int n_userhash_peers = 0
static

Definition at line 28 of file peer_userhash.cc.

Referenced by peerUserHashInit(), and peerUserHashSelectParent().

OBJH peerUserHashCachemgr
static

Definition at line 30 of file peer_userhash.cc.

Referenced by peerUserHashRegisterWithCacheManager().

CachePeer** userhash_peers = NULL
static

Definition at line 29 of file peer_userhash.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors