The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
atomic_t Struct Reference

#include <atomic.h>

Data Fields

volatile int count
 Atomic counter. Use the provided API to ensure atomicity.
 

Detailed Description

Atomic counter definition. This is a structure keeping a volatile int inside. The structure and the volatile part is required to avoid that the compiler wrongly optimizes some accesses to the count member.

Definition at line 42 of file atomic.h.


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