rpcs3/rpcs3
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
..
Crypto Fix std::basic_string warnings (#16261) 2024-11-11 21:54:44 +02:00
Emu IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
Icons Qt: Use svg instead of png 2021-10-28 21:01:27 +02:00
Input ps move tracker: draw sphere size range into live image 2024-12-21 14:36:24 +01:00
Loader Fix std::basic_string warnings (#16261) 2024-11-11 21:54:44 +02:00
qt/etc Qt6 port 2023-07-31 20:03:24 +03:00
rpcs3qt IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
util IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
CMakeLists.txt cellGem: implement quaternion transformation 2024-12-11 18:56:53 +01:00
Cubeb.vcxproj Audio: device switching and channel count detection (#12246) 2022-07-08 17:13:38 +02:00
Cubeb.vcxproj.filters Audio: device switching and channel count detection (#12246) 2022-07-08 17:13:38 +02:00
display_sleep_control.cpp Fix Apple Clang build 2024-02-24 20:54:55 +02:00
display_sleep_control.h Remove BOM markers 2020-12-06 15:30:12 +03:00
emucore.vcxproj rsx/vk: Implement asynchronous host memory management. 2024-12-16 19:00:08 +03:00
emucore.vcxproj.filters rsx/vk: Implement asynchronous host memory management. 2024-12-16 19:00:08 +03:00
frame_icon.xpm
git-version.cmake CD: Fix experimental build warning for Travis 2020-03-27 23:00:22 +03:00
GLGSRender.vcxproj gl: Implement basic DMA layer using AMD_pinned_memory 2024-10-23 16:33:44 +03:00
GLGSRender.vcxproj.filters gl: Implement basic DMA layer using AMD_pinned_memory 2024-10-23 16:33:44 +03:00
headless_application.cpp Qt: Deprecate proccessEvents() usage 2024-11-26 03:33:24 +02:00
headless_application.h Linux: use futex_waitv syscall for atomic waiting 2023-08-02 21:46:06 +03:00
main.cpp Make error message for temporary and archive translatable (#16331) 2024-11-20 16:54:31 +02:00
main_application.cpp Add some asserts for g_fxo->init<> 2024-11-27 16:00:40 +02:00
main_application.h overlays: add pages to home menu 2023-02-09 20:36:35 +01:00
module_verifier.cpp Case-insensitive path compare for module verifier (#15889) 2024-08-04 15:46:08 +02:00
module_verifier.hpp Run platform sanity checks after creating the log and log windows path 2024-08-02 21:40:30 +02:00
resource.h Remove whitespace 2023-02-15 08:58:02 +01:00
resources.qrc Qt: Use svg instead of png 2021-10-28 21:01:27 +02:00
rpcs3.desktop Add startupWMClass to linux .desktop Fixes #10685 2021-08-09 09:08:44 +02:00
rpcs3.icns Round macOS icon 2022-02-27 11:16:50 +01:00
rpcs3.ico upgrade icons to a modern design 2021-03-29 22:24:40 +03:00
rpcs3.metainfo.xml Metainfo: Update number of compatible games 2023-12-30 11:41:52 +01:00
rpcs3.plist.in macOS arm64 CI (#16070) 2024-09-22 20:39:43 +02:00
rpcs3.png upgrade icons to a modern design 2021-03-29 22:24:40 +03:00
rpcs3.rc
rpcs3.svg upgrade icons to a modern design 2021-03-29 22:24:40 +03:00
rpcs3.vcxproj cellGem: implement quaternion transformation 2024-12-11 18:56:53 +01:00
rpcs3.vcxproj.filters cellGem: implement quaternion transformation 2024-12-11 18:56:53 +01:00
rpcs3_version.cpp rpcs3_version: Bump to 0.0.34 2024-11-01 23:22:32 +00:00
rpcs3_version.h Savestates: Save build version and creation time 2023-12-29 11:11:53 +02:00
stb_image.cpp Add -Werror=implicit-fallthrough to cmake build 2024-01-07 17:29:43 +01:00
stdafx.cpp shared_ptr.hpp: don't use fake objects 2021-05-30 15:07:17 +03:00
stdafx.h Make compile with msvc, clang and gcc on Windows 2023-07-11 21:40:30 +03:00
update_helper.sh rpcs3qt: Add macOS support to the updater. 2024-01-24 09:44:56 +01:00
VKGSRender.vcxproj Remove unused SPIRV submodules 2024-10-03 15:35:20 +02:00
VKGSRender.vcxproj.filters rsx/vk: Refactor FSR integration to support multiple backends 2024-02-26 18:15:06 +03:00
windows.qrc
XAudio.vcxproj xaudio2: use system library instead of xaudio2redist 2024-02-27 05:21:32 +02:00
XAudio.vcxproj.filters Audio: device switching and channel count detection (#12246) 2022-07-08 17:13:38 +02:00