jak-project/game/sce
Ziemas f8bc883d48
Implement scheduling of IOP threads. (#1689)
* Use sleepthread in RPC loop

* Keep a pointer to current IOP thread

* Implement IOP thread scheduling based on priority

And implement DelayThread as an actual delay.

* Run IOP flat out

* Use information from scheduler in wait_run_iop

* Lock sif mutex in set_rpc_queue

* always use kernel dispatch with wait_run

* Loop in dispatch until no thread is ready

* Use timestamp for next wakeup

instead of duration

* Wrap IOP thread entrypoints for safety

Libco threads are not supposed to return from their entrypoint

* Use a queue for IOP thread wakeups from EE thread
2022-07-26 21:15:37 -04:00
..
deci2.cpp [jak2] goalc supports multiple projects (#1619) 2022-07-06 21:18:08 -04:00
deci2.h [jak2] goalc supports multiple projects (#1619) 2022-07-06 21:18:08 -04:00
iop.cpp Implement scheduling of IOP threads. (#1689) 2022-07-26 21:15:37 -04:00
iop.h Implement scheduling of IOP threads. (#1689) 2022-07-26 21:15:37 -04:00
libcdvd_ee.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
libcdvd_ee.h implement cpad stuff 2021-08-14 21:00:50 +01:00
libdma.cpp [Decompile] DMA and similar (#275) 2021-02-21 11:02:28 -05:00
libdma.h [Decompile] DMA and similar (#275) 2021-02-21 11:02:28 -05:00
libgraph.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
libgraph.h [Decompile] DMA and similar (#275) 2021-02-21 11:02:28 -05:00
libpad.cpp fix controller vibration (#1685) 2022-07-19 19:06:05 -04:00
libpad.h fix controller vibration (#1685) 2022-07-19 19:06:05 -04:00
libscf.cpp game: read current date correctly for save data (#1590) 2022-07-03 17:27:23 -04:00
libscf.h memory cards (in progress) (#868) 2021-10-01 23:12:34 -04:00
sif_ee.cpp Implement scheduling of IOP threads. (#1689) 2022-07-26 21:15:37 -04:00
sif_ee.h memory cards (in progress) (#868) 2021-10-01 23:12:34 -04:00
sif_ee_memcard.cpp extractor: cleanup, support unicode properly, and add multi-game support (#1609) 2022-07-05 20:38:13 -04:00
sif_ee_memcard.h memory cards (in progress) (#868) 2021-10-01 23:12:34 -04:00
stubs.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
stubs.h display loop runs 2021-08-04 21:30:08 -04:00