Thread: Reduce use of Handles and move some funcs to inside the class.
This commit is contained in:
parent
ba72208cd4
commit
9bf8462b96
11 changed files with 222 additions and 302 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue