Pengfei Zhu de3d7cf49f
kernel/thread: Change owner_process to std::weak_ptr (#5325)
* kernel/thread: Change owner_process to std::weak_ptr

Previously this leaked almost all kernel objects. In short, Threads own Processes which own HandleTables which own maps of Objects which include Threads.

Changing this to weak_ptr at least got the camera interfaces to destruct properly. Did not really check the other objects though, and I think there are probably more leaks.

* hle/kernel: Lock certain objects while deserializing

When deserializing other kernel objects, these objects (`MemoryRegion`s and `VMManager`s) can possibly get modified. To avoid inconsistent state caused by destructor side-effects, we may as well simply lock them until loading is fully completed.

* Fix silly typo

Somehow this didn't break?!
2020-11-15 12:59:45 +01:00
..
2020-04-20 16:30:49 +01:00
2020-04-18 15:14:01 +01:00
2020-02-13 17:39:15 +08:00
2020-02-13 17:39:15 +08:00
2020-03-29 16:14:36 +01:00
2020-02-13 17:39:15 +08:00
2020-02-21 19:31:32 +01:00
2020-02-13 17:39:15 +08:00
2020-02-13 17:42:00 +08:00
2020-03-31 18:27:33 +01:00
2020-10-01 09:54:42 +08:00
2020-02-13 17:39:15 +08:00
2020-03-31 18:27:33 +01:00
2020-02-13 17:38:16 +08:00
2020-04-11 19:47:06 +01:00