view Paper/src/TQueue.h @ 10:7573c185aecf

add impl
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:27:17 +0900
parents
children f8a089dbfe06
line wrap: on
line source

typedef struct TQueue<>{
    union Data* tQueue;
    union Data* data;
    struct FileString* string;

    __code whenEmpty(...);
    __code whenEOF(...);
    __code clear(Impl* tQueue, __code next(...));
    __code put(Impl* tQueue, union Data* data, __code next(...));
    __code take(Impl* tQueue, __code next(union Data* data, ...));
    __code isEmpty(Impl* tQueue, __code next(...), __code whenEmpty(...));

    __code sendData(Impl* tQueue, union Data* data, __code next(...));
    __code getData(Impl* tQueue, __code next(...), __code whenEOF(...));
    __code next(...);
} TQueue;