Flow-IPC 1.0.2
Flow-IPC project: Public API.
Public Member Functions | List of all members
ipc::util::Use_counted_object Class Reference

Simple counter that manually tracks utilization. It is not thread-safe. More...

#include <use_counted_object.hpp>

Public Member Functions

 Use_counted_object ()
 Constructor.
 
unsigned int get_use_count () const
 Returns the current usage. More...
 
void increment_use ()
 Increments the usage.
 
void decrement_use ()
 Decrements the usage. The current count must be greater than one.
 

Detailed Description

Simple counter that manually tracks utilization. It is not thread-safe.

Member Function Documentation

◆ get_use_count()

unsigned int ipc::util::Use_counted_object::get_use_count ( ) const

Returns the current usage.

Returns
See above.

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