diff options
| author | 2014-05-16 23:48:15 -0400 | |
|---|---|---|
| committer | 2014-05-16 23:48:15 -0400 | |
| commit | 7cdb70505944b2ed456d7f5376594e05f3b3357f (patch) | |
| tree | 34d5d1a1f6a449cb90caf9589b3e029b76ccc1e3 /src/core/hle/kernel/thread.cpp | |
| parent | added stubbed GetProcSemaphore - does nothing but avoids an exception (diff) | |
| download | yuzu-7cdb70505944b2ed456d7f5376594e05f3b3357f.tar.gz yuzu-7cdb70505944b2ed456d7f5376594e05f3b3357f.tar.xz yuzu-7cdb70505944b2ed456d7f5376594e05f3b3357f.zip | |
- replaced KERNELOBJECT_MAX_NAME_LENGTH with KERNEL_MAX_NAME_LENGTH
- added KERNEL_DEFAULT_STACK_SIZE definition (0x4000)
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 9 |
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 |
| 168 | Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority, s32 processor_id, u32 stack_top, int stack_size=0x4000) { | 168 | Thread *__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 | } |