view src/parallel_execution/Atomic.h @ 477:c3202635c20a

fix Stack.agda
author ryokka
date Thu, 28 Dec 2017 15:52:01 +0900
parents 6b71cf5b1c22
children
line wrap: on
line source

typedef struct Atomic<Impl>{
    union Data* atomic;
    union Data** ptr;
    union Data* oldData;
    union Data* newData;
    __code checkAndSet(Impl* atomic, union Data** ptr, union Data* oldData, union Data* newData, __code next(...), __code fail(...));
    __code next(...);
    __code fail(...);
} Atomic;