view Paper/codes/Queue.h @ 29:11aa33c0b2e9 default tip

merge
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Fri, 21 May 2021 15:21:37 +0900 (2021-05-21)
parents 265e4e52d19f
children
line wrap: on
line source
typedef struct Queue<>{
    union Data* queue;
    union Data* data;
    enum Code next();
    enum Code whenEmpty();

    __code whenEmpty(...);
    __code clear(Impl* queue, __code next(...));
    __code put(Impl* queue, union Data* data, __code next(...));
    __code take(Impl* queue, __code next(union Data* data, ...));
    __code isEmpty(Impl* queue, __code next(...), __code whenEmpty(...));
    __code next(...);
} Queue;