Skip to content

Commit 2245374

Browse files
committed
rollback _thread startup
1 parent 424d298 commit 2245374

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

package/_thread/_thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void _thread_start_new_thread(PikaObj* self, Arg* function, Arg* args_) {
161161
obj_setSysOut(self, "thread create failed");
162162
return;
163163
}
164+
pika_platform_thread_startup(info->thread);
164165
#if !PIKA_THREAD_MALLOC_STACK_ENABLE
165166
g_PikaMemInfo.heapUsed += info->stack_size;
166167
#endif

port/linux/package/pikascript/pikascript-lib/_thread/_thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void _thread_start_new_thread(PikaObj* self, Arg* function, Arg* args_) {
161161
obj_setSysOut(self, "thread create failed");
162162
return;
163163
}
164+
pika_platform_thread_startup(info->thread);
164165
#if !PIKA_THREAD_MALLOC_STACK_ENABLE
165166
g_PikaMemInfo.heapUsed += info->stack_size;
166167
#endif

0 commit comments

Comments
 (0)