MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / OS_HLE_osCreateMesgQueue

Function OS_HLE_osCreateMesgQueue

Source/OSHLE/OS.cpp:51–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49//
50//*****************************************************************************
51void 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//*****************************************************************************

Callers

nothing calls this directly

Calls 7

SetEmptyQueueMethod · 0.80
SetFullQueueMethod · 0.80
SetValidCountMethod · 0.80
SetFirstMethod · 0.80
SetMsgCountMethod · 0.80
SetMesgArrayMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected