Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::SharedCounter Class Reference

#include <MSharedCounter.h>

Public Member Functions

 SharedCounter (int value=0)
 
void setValue (int value)
 Set counter value.
 
int getValue () const
 Return current counter value.
 
void incValue (int value)
 Increase counter by value.
 
void decValue (int value)
 Decrease counter by value.
 

Protected Attributes

std::atomic< int > value_
 

Detailed Description

SharedCounter - Thread safe integer counter


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