FastUIDraw
Public Member Functions | List of all members
fastuidraw::reference_count_non_concurrent Class Reference

Reference counter that is NOT thread safe. More...

#include <reference_count_non_concurrent.hpp>

Inheritance diagram for fastuidraw::reference_count_non_concurrent:
Inheritance graph
[legend]

Public Member Functions

 reference_count_non_concurrent (void)
 
void add_reference (void)
 
bool remove_reference (void)
 

Detailed Description

Reference counter that is NOT thread safe.

Definition at line 35 of file reference_count_non_concurrent.hpp.

Constructor & Destructor Documentation

◆ reference_count_non_concurrent()

fastuidraw::reference_count_non_concurrent::reference_count_non_concurrent ( void  )
inline

Initializes the counter as zero.

Definition at line 41 of file reference_count_non_concurrent.hpp.

Member Function Documentation

◆ add_reference()

void fastuidraw::reference_count_non_concurrent::add_reference ( void  )
inline

Increment reference counter by 1.

Definition at line 54 of file reference_count_non_concurrent.hpp.

◆ remove_reference()

bool fastuidraw::reference_count_non_concurrent::remove_reference ( void  )
inline

Decrements the counter by 1 and returns status of if the counter is 0 after the decrement operation.

Definition at line 64 of file reference_count_non_concurrent.hpp.


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