20 #ifndef GALOIS_SUBSTRATE_STATICINSTANCE_H
21 #define GALOIS_SUBSTRATE_STATICINSTANCE_H
23 #include "galois/config.h"
40 substrate::asmPause();
42 oldval = __sync_fetch_and_or(&
_lock, 1);
Definition: StaticInstance.h:32
volatile int _lock
Definition: StaticInstance.h:34
void unlock()
Definition: StaticInstance.h:46
void lock()
Definition: StaticInstance.h:36
volatile T * V
Definition: StaticInstance.h:33