| 49 | // |
| 50 | //***************************************************************************** |
| 51 | void OS_HLE_osCreateMesgQueue(u32 queue, u32 msgBuffer, u32 msgCount) |
| 52 | { |
| 53 | COSMesgQueue q(queue); |
| 54 | |
| 55 | const u32 addr = VAR_ADDRESS(osNullMsgQueue); |
| 56 | |
| 57 | q.SetEmptyQueue(addr); |
| 58 | q.SetFullQueue(addr); |
| 59 | q.SetValidCount(0); |
| 60 | q.SetFirst(0); |
| 61 | q.SetMsgCount(msgCount); |
| 62 | q.SetMesgArray(msgBuffer); |
| 63 | |
| 64 | //DBGConsole_Msg(0, "osCreateMsgQueue(0x%08x, 0x%08x, %d)", |
| 65 | // queue, msgBuffer, msgCount); |
| 66 | #ifdef DUMPOSFUNCTIONS |
| 67 | for ( u32 i = 0; i < g_MessageQueues.size(); i++) |
| 68 | { |
| 69 | if (g_MessageQueues[i] == queue) |
| 70 | return; // Already in list |
| 71 | |
| 72 | } |
| 73 | g_MessageQueues.push_back(queue); |
| 74 | #endif |
| 75 | } |
| 76 | #endif |
| 77 | |
| 78 | //***************************************************************************** |
nothing calls this directly
no test coverage detected