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

fiftyoneDegreesResourceHandle Struct Reference

Detailed Description

Handle for a shared resource.

The first data structure counter tracks use of the resource and free resources that are not longer active. Counter must be the first member to ensure correct memory aligned for interlocked operations.

Collaboration diagram for fiftyoneDegreesResourceHandle:

[legend]

Data Fields

volatile fiftyoneDegreesInterlockDoubleWidth counter
 Counter for this handle.
const void * resource
 Pointer to the resource being managed.
const fiftyoneDegreesResourceManager * manager
 Pointer to the manager the handle relates to.
void(* freeResource )(void *)
 Pointer to the method used to free the resource.

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