1
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle
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
..
kernel Merge pull request #1492 from lioncash/proc 2018-10-14 14:37:58 -04:00
service file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
ipc.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
ipc_helpers.h Removed MakeBuilder as it's not needed anymore 2018-09-19 15:13:56 +10:00
lock.cpp Fix build on macOS and linux 2018-01-13 22:38:52 +00:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h hle/result: Make ResultVal's move constructor as noexcept 2018-08-28 09:39:50 -04:00