Collaboration diagram for cbdata:

Public Member Functions

void * operator new (size_t byteCount)
void operator delete (void *address)
 cbdata ()
 ~cbdata ()
void check (int) const

Static Public Member Functions

static int UseCount ()

Public Attributes

int valid
int32_t locks
cbdata_type type
long cookie
void * data

Static Public Attributes

static const long Cookie

Static Private Member Functions

static Mem::AllocatorProxyPool ()

Detailed Description

Manage a set of registered callback data pointers. One of the easiest ways to make Squid coredump is to issue a callback to for some data structure which has previously been freed. With this class, we register (add) callback data pointers, lock them just before registering the callback function, validate them before issuing the callback, and then free them when finished.

Definition at line 60 of file

Constructor & Destructor Documentation

◆ cbdata()

cbdata::cbdata ( )
examine making cbdata templated on this - so we get type safe access to data - RBC 20030902

Definition at line 81 of file

◆ ~cbdata()

cbdata::~cbdata ( )

Definition at line 155 of file

References cbdata_index, data, MemAllocator::freeOne(), p, CBDataIndex::pool, and type.

Member Function Documentation

◆ check()

void cbdata::check ( int  ) const

Definition at line 114 of file

References assert.

Referenced by cbdataInternalFree(), cbdataInternalLock(), cbdataInternalUnlock(), and cbdataReferenceValid().

◆ operator delete()

void cbdata::operator delete ( void *  address)

Definition at line 71 of file

◆ operator new()

void* cbdata::operator new ( size_t  byteCount)

Definition at line 71 of file

◆ Pool()

static Mem::AllocatorProxy& cbdata::Pool ( )

Definition at line 71 of file

◆ UseCount()

static int cbdata::UseCount ( )

Definition at line 71 of file

Member Data Documentation

◆ cookie

long cbdata::cookie

Definition at line 113 of file

Referenced by cbdataInternalAlloc().

◆ Cookie

const long cbdata::Cookie

Definition at line 115 of file

Referenced by cbdataInternalAlloc().

◆ data

void* cbdata::data

Definition at line 123 of file

Referenced by cbdataInternalAlloc(), cbdataRealFree(), and Ssl::HandleGeneratorReply().

◆ locks

int32_t cbdata::locks

◆ type

cbdata_type cbdata::type

Definition at line 96 of file

Referenced by cbdataInternalAlloc().

◆ valid

int cbdata::valid

The documentation for this class was generated from the following file:






Web Site Translations