rpcsx/rpcs3/Emu
Elad 575a245f8d
IDM: Implement lock-free smart pointers (#16403)
Replaces `std::shared_pointer` with `stx::atomic_ptr` and `stx::shared_ptr`.

Notes to programmers:

* This pr kills the use of `dynamic_cast`, `std::dynamic_pointer_cast` and `std::weak_ptr` on IDM objects, possible replacement is to save the object ID on the base object, then use idm::check/get_unlocked to the destination type via the saved ID which may be null. Null pointer check is how you can tell type mismatch (as dynamic cast) or object destruction (as weak_ptr locking).
* Double-inheritance on IDM objects should be used with care, `stx::shared_ptr` does not support constant-evaluated pointer offsetting to parent/child type.
* `idm::check/get_unlocked` can now be used anywhere.

Misc fixes:
* Fixes some segfaults with RPCN with interaction with IDM.
* Fix deadlocks in access violation handler due locking recursion.
* Fixes race condition in process exit-spawn on memory containers read.
* Fix bug that theoretically can prevent RPCS3 from booting - fix `id_manager::typeinfo` comparison to compare members instead of `memcmp` which can fail spuriously on padding bytes.
* Ensure all IDM inherited types of base, either has `id_base` or `id_type` defined locally, this allows to make getters such as `idm::get_unlocked<lv2_socket, lv2_socket_raw>()` which were broken before. (requires save-states invalidation)
* Removes broken operator[] overload of `stx::shared_ptr` and `stx::single_ptr` for non-array types.
2024-12-22 20:59:48 +02:00
..
Audio sys_net improvements (#15584) 2024-05-13 05:35:08 +03:00
Cell IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
CPU IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
Io cellGem: add magnetometer support 2024-12-21 03:24:32 +01:00
Memory PPU: Notify SPUs while waiting for its own state 2024-11-30 18:06:34 +02:00
NP IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
RSX IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
cache_utils.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
cache_utils.hpp Move unspecific Emulator code out of System.cpp 2021-04-24 11:21:22 +03:00
CMakeLists.txt Fix linux build 2024-12-16 19:00:08 +03:00
config_mode.h Decrease some include madness 2023-04-26 21:37:44 +02:00
GameInfo.h Qt: Remove default "Unknown" in GameInfo struct 2023-12-03 01:05:28 +01:00
games_config.cpp [TESTERS NEEDED] Improved contextual menu (#16038) 2024-09-14 21:51:42 +02:00
games_config.h [TESTERS NEEDED] Improved contextual menu (#16038) 2024-09-14 21:51:42 +02:00
GDB.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
GDB.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
IdManager.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
IdManager.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
IPC.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
IPC_config.cpp fix some warnings 2023-12-30 19:07:35 +01:00
IPC_config.h Implement PINE IPC Server 2022-06-19 17:56:50 +02:00
IPC_socket.cpp Start/Stop IPC when changing the config setting 2023-12-15 18:08:07 +01:00
IPC_socket.h Fix fxo dependencies 2023-12-15 18:08:07 +01:00
localized_string.cpp Remove BOM markers 2020-12-06 15:30:12 +03:00
localized_string.h Remove BOM markers 2020-12-06 15:30:12 +03:00
localized_string_id.h cellGem: Split horizontal and vertical mouse rotation cone setting 2024-12-19 16:55:39 +01:00
perf_meter.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
perf_meter.hpp SPU: Inline and batch MFC list transfers 2022-10-09 19:27:46 +03:00
perf_monitor.cpp Implement thread_ctrl::wait_until() 2024-08-17 06:38:49 +03:00
perf_monitor.hpp Log cpu usage periodically 2022-03-16 19:42:06 +01:00
savestate_utils.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
savestate_utils.hpp util\serialization_ext.cpp: Fixup 2024-03-27 19:59:22 +02:00
scoped_progress_dialog.cpp Fix warning 2024-12-17 20:46:07 +01:00
System.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
System.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
system_config.cpp fix some warnings 2024-04-15 19:28:28 +02:00
system_config.h cellGem: add setting to let the game actually set the device hues 2024-12-20 17:30:25 +01:00
system_config_types.cpp cellGem: implement real ps move handler 2024-11-16 09:45:31 +01:00
system_config_types.h cellGem: implement real ps move handler 2024-11-16 09:45:31 +01:00
system_progress.cpp Progress Dialog: Fix recursion and concurrency use of text updates 2024-11-16 12:22:23 +02:00
system_progress.hpp Progress: Dialog: Fixup memory management 2024-11-18 18:45:34 +02:00
system_utils.cpp [TESTERS NEEDED] Improved contextual menu (#16038) 2024-09-14 21:51:42 +02:00
system_utils.hpp [TESTERS NEEDED] Improved contextual menu (#16038) 2024-09-14 21:51:42 +02:00
title.cpp Cleanup and move sysinfo.h -> util/sysinfo.hpp 2020-12-18 12:55:54 +03:00
title.h Remove whitespace 2023-02-15 08:58:02 +01:00
VFS.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
VFS.h Ensure HDD1 is never damaged or corrupted due to unexpected RPCS3/game termination 2024-01-11 20:24:53 +02:00
vfs_config.cpp VFS: Fix some potential .back() segfaults 2024-01-25 17:03:58 +01:00
vfs_config.h Deprecate HDD0/disc, make RPCS3/games movable (#13265) 2023-01-23 08:00:46 +01:00