Thread ID lookup and naming.

This commit is contained in:
Ben Vanik
2014-01-07 20:54:47 -08:00
parent 20b76b0e59
commit 5fd0b211ce
5 changed files with 94 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ public:
uint32_t thread_id();
uint32_t last_error();
void set_last_error(uint32_t error_code);
const char* name() const { return name_; }
void set_name(const char* name);
X_STATUS Create();
X_STATUS Exit(int exit_code);
@@ -83,6 +85,8 @@ private:
uint32_t thread_state_address_;
cpu::XenonThreadState* thread_state_;
char* name_;
uint32_t irql_;
XEvent* event_;