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

#include <atomic.h>

Data Fields

volatile unsigned int lock
 The lock guard.
 

Detailed Description

Spinlock definition. This is a structure keeping a volatile unsigned 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 51 of file atomic.h.


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