Searched refs:m_sMsgQ (Results 1 – 2 of 2) sorted by relevance
310 static MsgQ m_sMsgQ; variable999 if (m_sMsgQ.size >= MAX_MSG) in SendMessage()1004 m_sMsgQ.q[(m_sMsgQ.head + m_sMsgQ.size) % MAX_MSG].id = id; in SendMessage()1006 m_sMsgQ.q[(m_sMsgQ.head + m_sMsgQ.size) % MAX_MSG].data = *data; in SendMessage()1007 ++m_sMsgQ.size; in SendMessage()1015 while (m_sMsgQ.size == 0) in PopMessage()1019 *msg = m_sMsgQ.q[m_sMsgQ.head]; in PopMessage()1020 --m_sMsgQ.size; in PopMessage()1021 m_sMsgQ.head = (m_sMsgQ.head + 1) % MAX_MSG; in PopMessage()1937 memset(&m_sMsgQ, 0, sizeof(MsgQ)); in main()
339 static MsgQ m_sMsgQ; variable1017 if (m_sMsgQ.size >= MAX_MSG) { in SendMessage()1022 m_sMsgQ.q[(m_sMsgQ.head + m_sMsgQ.size) % MAX_MSG].id = id; in SendMessage()1025 m_sMsgQ.q[(m_sMsgQ.head + m_sMsgQ.size) % MAX_MSG].data = *data; in SendMessage()1027 ++m_sMsgQ.size; in SendMessage()1036 while (m_sMsgQ.size == 0) { in PopMessage()1040 *msg = m_sMsgQ.q[m_sMsgQ.head]; in PopMessage()1041 --m_sMsgQ.size; in PopMessage()1042 m_sMsgQ.head = (m_sMsgQ.head + 1) % MAX_MSG; in PopMessage()1947 memset(&m_sMsgQ, 0, sizeof(MsgQ)); in main()