mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 18:00:05 +00:00
Kernel: Remove unused g_main_thread variable
This commit is contained in:
parent
3cb19c9589
commit
7c50b999fa
@ -17,7 +17,6 @@
|
|||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
unsigned int Object::next_object_id;
|
unsigned int Object::next_object_id;
|
||||||
SharedPtr<Thread> g_main_thread;
|
|
||||||
HandleTable g_handle_table;
|
HandleTable g_handle_table;
|
||||||
|
|
||||||
void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) {
|
void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) {
|
||||||
@ -140,7 +139,6 @@ void Init() {
|
|||||||
Kernel::TimersInit();
|
Kernel::TimersInit();
|
||||||
|
|
||||||
Object::next_object_id = 0;
|
Object::next_object_id = 0;
|
||||||
g_main_thread = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Shutdown the kernel
|
/// Shutdown the kernel
|
||||||
|
@ -85,7 +85,7 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) {
|
void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) {
|
||||||
g_main_thread = Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority);
|
Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
Kernel::Process::Process() {}
|
Kernel::Process::Process() {}
|
||||||
|
@ -171,8 +171,6 @@ private:
|
|||||||
Handle callback_handle;
|
Handle callback_handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern SharedPtr<Thread> g_main_thread;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the primary application thread
|
* Sets up the primary application thread
|
||||||
* @param stack_size The size of the thread's stack
|
* @param stack_size The size of the thread's stack
|
||||||
|
Loading…
Reference in New Issue
Block a user