51Degrees Device Detection C/C++  4.4

A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesCacheShard Struct Reference

Detailed Description

Cache shard structure used to enable concurrent access to the cache.

Collaboration diagram for fiftyoneDegreesCacheShard:


Data Fields

fiftyoneDegreesCache *  cache
Pointer to the cache to which the node belongs.
fiftyoneDegreesTreeRoot  root
Root node of the red black tree.
uint32_t  capacity
Capacity of the shard.
uint32_t  allocated
Number of nodes currently used in the shard.
fiftyoneDegreesCacheNode *  nodes
Pointer to the array of all nodes.
fiftyoneDegreesCacheNode *  first
Pointer to the first node in the linked list.
fiftyoneDegreesCacheNode *  last
Pointer to the last node in the linked list.
fiftyoneDegreesMutex  lock
Used to ensure exclusive access to the shard for get and release operations.

The documentation for this struct was generated from the following file:
  • /home/vsts/work/1/s/apis/device-detection-cxx/src/common-cxx/cache.h
On This Page