Kaynağa Gözat

增加线程启动函数

longmain 1 yıl önce
ebeveyn
işleme
3d40be98ab
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      package/_thread/_thread.c

+ 1 - 0
package/_thread/_thread.c

@@ -155,6 +155,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