Tkrzw
|
Scoped counter for auto increment and decrement. More...
#include <tkrzw_thread_util.h>
Public Member Functions | |
ScopedCounter (T *count, int32_t increment=1) | |
Constructor. More... | |
~ScopedCounter () | |
Destructor. More... | |
ScopedCounter (const ScopedCounter &rhs)=delete | |
Copy and assignment are disabled. More... | |
ScopedCounter & | operator= (const ScopedCounter &rhs)=delete |
Scoped counter for auto increment and decrement.
|
explicit |
Constructor.
count | The pointer to the counter object. |
increment | The value to add in the constructor and subtract in the destructor. |
tkrzw::ScopedCounter< T >::~ScopedCounter |
Destructor.
|
explicitdelete |
Copy and assignment are disabled.