chrono::synchrono::SynDDSThreadSafeCounter Class Reference


Thread safe counter used to count various elements Use case would be to block until a certain number of elements.

Doesn't busy wait but uses mutex instead.

#include <SynDDSListener.h>

Public Member Functions

void BlockUntil (int iters)
void Increment ()
void SetSafe (int iters)
int GetSafe ()

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.h
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/SynDDSListener.cpp