PCSX2 Documentation/The PCSX2 Program Flow: Difference between revisions

Jump to navigation Jump to search
No edit summary
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 here: [https://github.com/PCSX2/pcsx2/blob/63ba78b6642b2cf617b4d7c9970a47b7038f492d/pcsx2/gui/AppAssert.cpp here]. Similarly, pxDoOutOfMemory will actually call SysOutOfMemory_EmergencyResponse, defined here: [https://github.com/PCSX2/pcsx2/blob/c5e6013d75057af0aa667788fbb30d2c024f9079/pcsx2/System.cpp].
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].


==WxWidgets Frames==
==WxWidgets Frames==