peer_userhash.cc File Reference
#include "squid.h"
#include "auth/UserRequest.h"
#include "CachePeer.h"
#include "CachePeers.h"
#include "globals.h"
#include "HttpRequest.h"
#include "mgr/Registration.h"
#include "neighbors.h"
#include "peer_userhash.h"
#include "PeerSelectState.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 auto & UserHashPeers ()
 userhash peers ordered by their userhash weight More...
 
static void peerUserHashRegisterWithCacheManager (void)
 
static int peerSortWeight (const void *a, const void *b)
 
void peerUserHashInit (void)
 
CachePeerpeerUserHashSelectParent (PeerSelector *ps)
 
static void peerUserHashCachemgr (StoreEntry *sentry)
 

Variables

static OBJH peerUserHashCachemgr
 

Macro Definition Documentation

◆ ROTATE_LEFT

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

Definition at line 29 of file peer_userhash.cc.

Function Documentation

◆ peerSortWeight()

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

Definition at line 43 of file peer_userhash.cc.

References CachePeer::weight.

Referenced by peerUserHashInit().

◆ peerUserHashCachemgr()

static void peerUserHashCachemgr ( StoreEntry sentry)
static

Definition at line 196 of file peer_userhash.cc.

References storeAppendPrintf(), and UserHashPeers().

◆ peerUserHashInit()

void peerUserHashInit ( void  )

◆ peerUserHashRegisterWithCacheManager()

static void peerUserHashRegisterWithCacheManager ( void  )
static

Definition at line 136 of file peer_userhash.cc.

References peerUserHashCachemgr, and Mgr::RegisterAction().

Referenced by peerUserHashInit().

◆ peerUserHashSelectParent()

◆ UserHashPeers()

static auto & UserHashPeers ( )
static

Variable Documentation

◆ peerUserHashCachemgr

OBJH peerUserHashCachemgr
static

Definition at line 39 of file peer_userhash.cc.

Referenced by peerUserHashRegisterWithCacheManager().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors