[Kernel] XThread: Added mutex to set_name.
There is a small chance that game will spam requests for thread name change which will cause invalid free
This commit is contained in:
@@ -465,6 +465,8 @@ class XThread : public XObject, public cpu::Thread {
|
||||
bool running_ = false;
|
||||
|
||||
int32_t priority_ = 0;
|
||||
|
||||
std::mutex thread_lock_;
|
||||
};
|
||||
|
||||
class XHostThread : public XThread {
|
||||
|
||||
Reference in New Issue
Block a user