#author("2021-12-05T16:44:51+09:00","default:Real2Virtual202111","Real2Virtual202111") #author("2024-07-01T11:48:42+09:00","default:TESLA202407","TESLA202407") [[Real2Virtual202111]] #code(c){{ #ifndef STRINGQUEUE_H #define STRINGQUEUE_H #include "common.h" #define QMax 127 #define sqMax 4 class StringQueue{ private: char squeueMem[sqMax][QMax]; // char squeueMem1[QMax]; char *squeue[sqMax]; int faceIDs[sqMax]; int status[sqMax]; // 0: unlock, 1: lock, 2: ready to read int squeueLength[sqMax]; int currentQNumber; char *currentQueue; int currentLength; int currentStatus; public: StringQueue(); int putSQueue(int fid, char *x, int lx); int getSQueue( char *y); // void initSQueue(void); int getLock( char id); void unLock(void); int getReadyQ(void); int getQueue( int fid); void clearQueue( int fid); }; #endif }} ---- #counter