This repository has been archived on 2025-12-14. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
github.ong19th.Citron/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
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_timing.h
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
perf_stats.h
settings.cpp
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