view Paper/src/atomicInterface.h @ 1:a72446879486

Init paper
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Thu, 12 Jan 2023 20:28:50 +0900
parents
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;