summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 833a1b4ba..76a73747d 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -81,7 +81,7 @@ public:
81 81
82 WaitType wait_type; 82 WaitType wait_type;
83 83
84 char name[KERNELOBJECT_MAX_NAME_LENGTH+1]; 84 char name[KERNEL_MAX_NAME_LENGTH+1];
85}; 85};
86 86
87// Lists all thread ids that aren't deleted/etc. 87// Lists all thread ids that aren't deleted/etc.
@@ -165,7 +165,8 @@ void __KernelResetThread(Thread *t, s32 lowest_priority) {
165} 165}
166 166
167/// Creates a new thread 167/// Creates a new thread
168Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority, s32 processor_id, u32 stack_top, int stack_size=0x4000) { 168Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority,
169 s32 processor_id, u32 stack_top, int stack_size) {
169 static u32 _handle_count = 1; 170 static u32 _handle_count = 1;
170 171
171 Thread *t = new Thread; 172 Thread *t = new Thread;
@@ -183,8 +184,8 @@ Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point,
183 t->processor_id = processor_id; 184 t->processor_id = processor_id;
184 t->wait_type = WAITTYPE_NONE; 185 t->wait_type = WAITTYPE_NONE;
185 186
186 strncpy(t->name, name, KERNELOBJECT_MAX_NAME_LENGTH); 187 strncpy(t->name, name, KERNEL_MAX_NAME_LENGTH);
187 t->name[KERNELOBJECT_MAX_NAME_LENGTH] = '\0'; 188 t->name[KERNEL_MAX_NAME_LENGTH] = '\0';
188 189
189 return t; 190 return t;
190} 191}