\r\n

51Degrees Device Detection C/C++  4.3

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. 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