2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/core
Lioncash 39ae73b356 file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable
The data retrieved in these cases are ultimately chiefly owned by either
the RegisteredCache instance itself, or the filesystem factories. Both
these should live throughout the use of their contained data. If they
don't, it should be considered an interface/design issue, and using
shared_ptr instances here would mask that, as the data would always be
prolonged after the main owner's lifetime ended.

This makes the lifetime of the data explicit and makes it harder to
accidentally create cyclic references. It also makes the interface
slightly more flexible than the previous API, as a shared_ptr can be
created from a unique_ptr, but not the other way around, so this allows
for that use-case if it ever becomes necessary in some form.
2018-10-16 09:38:52 -04:00
..
arm kernel/thread: Use a regular pointer for the owner/current process 2018-10-10 02:04:55 -04:00
crypto crypto: Various crypto fixes for quickstart guide 2018-10-14 21:57:52 -04:00
file_sys file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
frontend emu_window: Ensure WindowConfig members are always initialized 2018-08-14 19:36:43 -04:00
gdbstub kernel/thread: Make all instance variables private 2018-10-04 00:14:15 -04:00
hle file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
loader nso: Return an optional address from LoadModule 2018-10-15 17:02:11 -04:00
tracer Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
CMakeLists.txt Merge pull request #1473 from lioncash/cmake 2018-10-15 21:33:32 -04:00
core.cpp filesystem: Make CreateFactories() and InstallInterface() take a VfsFilesystem instance by reference 2018-10-13 11:36:35 -04:00
core.h kernel/thread: Use a regular pointer for the owner/current process 2018-10-10 02:04:55 -04:00
core_cpu.cpp core_cpu: Make arm_interface instances a std::unique_ptr 2018-09-25 16:04:56 -04:00
core_cpu.h core_cpu: Make arm_interface instances a std::unique_ptr 2018-09-25 16:04:56 -04:00
core_timing.cpp Core::CoreTiming: add UnscheduleEventThreadsafe 2018-08-13 13:56:41 +02:00
core_timing.h Core::CoreTiming: add UnscheduleEventThreadsafe 2018-08-13 13:56:41 +02:00
core_timing_util.cpp
core_timing_util.h
memory.cpp kernel/process: Make data member variables private 2018-09-30 02:30:01 -04:00
memory.h memory: Dehardcode the use of fixed memory range constants 2018-09-24 22:16:03 -04:00
memory_hook.cpp
memory_hook.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
memory_setup.h
perf_stats.cpp core/core: Replace includes with forward declarations where applicable 2018-08-31 16:30:14 -04:00
perf_stats.h core/core: Replace includes with forward declarations where applicable 2018-08-31 16:30:14 -04:00
settings.cpp video_core; Get rid of global g_toggle_framelimit_enabled variable 2018-08-10 19:00:09 -04:00
settings.h settings: Add program_args string setting 2018-10-07 14:32:05 -04:00
telemetry_session.cpp telemetry_session: Add missing includes 2018-10-09 14:51:39 -04:00
telemetry_session.h telemetry_session: Remove doxygen comment for a non-existent parameter 2018-10-09 14:52:10 -04:00