51Degrees Device Detection C/C++  4.1

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

fiftyoneDegreesResourceHandle Struct Reference

Detailed Description

Tracks the number of active uses of the resource within the manager.

Note: it is important that self and counter are consecutive elements in order to be used as a double width pointer.

Collaboration diagram for fiftyoneDegreesResourceHandle:

[legend]

Data Fields

fiftyoneDegreesResourceHandle *  self
Pointer to this handle. More...
fiftyoneDegreesResourceHandleCounter  counter
Tracks active use count of the resource. More...
const void *  resource
Pointer to the resource being managed. More...
const fiftyoneDegreesResourceManager *  manager
Pointer to the manager the handle relates to. More...
void(*  freeResource )(void *)
Pointer to the method used to free the resource. More...

Field Documentation

◆ freeResource

void(* fiftyoneDegreesResourceHandle::freeResource) (void *)

Pointer to the method used to free the resource.

◆ resource

const void* fiftyoneDegreesResourceHandle::resource

Pointer to the resource being managed.


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