Преглед на файлове

rollback _thread startup

lyon преди 1 година
родител
ревизия
2245374819
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      package/_thread/_thread.c
  2. 1 0
      port/linux/package/pikascript/pikascript-lib/_thread/_thread.c

+ 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