mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2025-01-15 17:02:52 +08:00
28 lines
390 B
C++
28 lines
390 B
C++
#ifndef _MSG_H
|
|
#define _MSG_H
|
|
|
|
typedef struct
|
|
{
|
|
unsigned int dwMsgId;
|
|
unsigned int dwParam1;
|
|
unsigned int dwParam2;
|
|
}MSG_INFO;
|
|
|
|
#define FIFO_BUFFER_LEN 1024
|
|
class c_fifo
|
|
{
|
|
public:
|
|
c_fifo();
|
|
int read(void* buf, int len);
|
|
int write(void* buf, int len);
|
|
|
|
private:
|
|
unsigned char m_buf[FIFO_BUFFER_LEN];
|
|
int m_head;
|
|
int m_tail;
|
|
void* m_read_sem;
|
|
void* m_write_mutex;
|
|
};
|
|
|
|
#endif
|