PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Line 40: Line 40:
pxDoOutOfMemory = SysOutOfMemory_EmergencyResponse;
pxDoOutOfMemory = SysOutOfMemory_EmergencyResponse;
</source>
</source>
These are function pointers for the pxThread, which is the main threading class for the PCSX2 virtual machine. Basically here we are telling pxThread how to handle certain function calls. For example, if pxDoAssert is called, then we will actually call AppDoAssert, which defined [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, pxDoOutOfMemory will actually call SysOutOfMemory_EmergencyResponse, defined [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp here].
These are function pointers for the pxThread, which is the main threading class for the PCSX2 virtual machine. Basically here we are telling pxThread how to handle certain function calls. For example, if <code>pxDoAssert</code> is called, then we will actually call <code>AppDoAssert</code>, which defined [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, <code>pxDoOutOfMemory</code> will actually call <code>SysOutOfMemory_EmergencyResponse</code>, defined [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp here].


==WxWidgets Frames==
==WxWidgets Frames==
ninja
782

edits