Thread: Reduce use of Handles and move some funcs to inside the class.

This commit is contained in:
Yuri Kunde Schlesner 2014-12-22 11:07:22 -02:00
parent ba72208cd4
commit 9bf8462b96
11 changed files with 222 additions and 302 deletions

View file

@ -16,6 +16,8 @@ const Handle INVALID_HANDLE = 0;
namespace Kernel {
class Thread;
// TODO: Verify code
const ResultCode ERR_OUT_OF_HANDLES(ErrorDescription::OutOfMemory, ErrorModule::Kernel,
ErrorSummary::OutOfResource, ErrorLevel::Temporary);
@ -190,7 +192,7 @@ private:
};
extern HandleTable g_handle_table;
extern Handle g_main_thread;
extern Thread* g_main_thread;
/// The ID code of the currently running game
/// TODO(Subv): This variable should not be here,