Switchboard SDK
Loading...
Searching...
No Matches
switchboard::Counter Class Reference

A simple counter that can be used from multiple threads. More...

#include <Counter.hpp>

Public Member Functions

 Counter ()
 Counter constructor.
 
uint getNext ()
 Gets the next value. The first call to this method returns 1.
 

Detailed Description

A simple counter that can be used from multiple threads.

Counter class.

Member Function Documentation

◆ getNext()

uint switchboard::Counter::getNext ( )

Gets the next value. The first call to this method returns 1.

Returns
The next value.