mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 12:27:22 +08:00
!19 Refactor wnd, add HelloWidgets
This commit is contained in:
27
core_include/msg.h
Normal file
27
core_include/msg.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user