1
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle
Lioncash baed7e1fba kernel/thread: Make all instance variables private
Many of the member variables of the thread class aren't even used
outside of the class itself, so there's no need to make those variables
public. This change follows in the steps of the previous changes that
made other kernel types' members private.

The main motivation behind this is that the Thread class will likely
change in the future as emulation becomes more accurate, and letting
random bits of the emulator access data members of the Thread class
directly makes it a pain to shuffle around and/or modify internals.
Having all data members public like this also makes it difficult to
reason about certain bits of behavior without first verifying what parts
of the core actually use them.

Everything being public also generally follows the tendency for changes
to be introduced in completely different translation units that would
otherwise be better introduced as an addition to the Thread class'
public interface.
2018-10-04 00:14:15 -04:00
..
kernel kernel/thread: Make all instance variables private 2018-10-04 00:14:15 -04:00
service Merge pull request #1338 from raven02/service_vi 2018-09-30 15:39:54 -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
result.h hle/result: Make ResultVal's move constructor as noexcept 2018-08-28 09:39:50 -04:00