Sfoglia il codice sorgente

rollback _thread startup

lyon 1 anno fa
parent
commit
2245374819

+ 1 - 0
package/_thread/_thread.c

@@ -161,6 +161,7 @@ void _thread_start_new_thread(PikaObj* self, Arg* function, Arg* args_) {
         obj_setSysOut(self, "thread create failed");
         return;
     }
+    pika_platform_thread_startup(info->thread);
 #if !PIKA_THREAD_MALLOC_STACK_ENABLE
     g_PikaMemInfo.heapUsed += info->stack_size;
 #endif

+ 1 - 0
port/linux/package/pikascript/pikascript-lib/_thread/_thread.c

@@ -161,6 +161,7 @@ void _thread_start_new_thread(PikaObj* self, Arg* function, Arg* args_) {
         obj_setSysOut(self, "thread create failed");
         return;
     }
+    pika_platform_thread_startup(info->thread);
 #if !PIKA_THREAD_MALLOC_STACK_ENABLE
     g_PikaMemInfo.heapUsed += info->stack_size;
 #endif