1
0
Fork 0
forked from suyu/suyu
suyu/src/core/arm
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
..
dynarmic kernel/thread: Make all instance variables private 2018-10-04 00:14:15 -04:00
unicorn kernel/thread: Make all instance variables private 2018-10-04 00:14:15 -04:00
arm_interface.h arm_interface: Add missing fpsr/tpidr members to the ThreadContext struct 2018-09-30 02:29:57 -04:00
exclusive_monitor.cpp core: Namespace all code in the arm subdirectory under the Core namespace 2018-08-24 21:50:39 -04:00
exclusive_monitor.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00