Kaynağa Gözat

add doc of os.default_njob (#121)

* correct layout

* add doc of os.default_njob
wanzzhehe 2 yıl önce
ebeveyn
işleme
3f01a427b8
2 değiştirilmiş dosya ile 12 ekleme ve 2 silme
  1. 7 2
      manual/builtin_modules.md
  2. 5 0
      zh-cn/manual/builtin_modules.md

+ 7 - 2
manual/builtin_modules.md

@@ -667,8 +667,9 @@ This module is also a native module of lua, and xmake has been extended to provi
 | [os.fscase](#osfscase) | Test if the os has a case sensitive filesystem | >= 2.1.9 |
 | [os.term](#osterm) | Get current terminal | >= 2.7.3 |
 | [os.shell](#osshell) | Get current shell | >= 2.7.3 |
-| [os.cpuinfo](#oscpuinfo) | Get cpu information | >= 2.1.5
-| [os.meminfo](#osmeminfo) | Get memory information | >= 2.1.5
+| [os.cpuinfo](#oscpuinfo) | Get cpu information | >= 2.1.5 |
+| [os.meminfo](#osmeminfo) | Get memory information | >= 2.1.5 |
+| [os.default_njob](#osdefault_njob) | Get default paralled jobs | >= 2.5.8 |
 
 #### os.cp
 
@@ -1263,6 +1264,10 @@ print(os.meminfo())
 -- }
 ```
 
+#### os.default_njob
+
+- Get default paralled jobs
+
 ### winos
 
 The windows system operation module is a built-in module, no need to use [import](#import) to import, you can directly call its interface in the script domain.

+ 5 - 0
zh-cn/manual/builtin_modules.md

@@ -664,6 +664,7 @@ if (errors) raise(errors)
 | [os.shell](#osshell) | 获取当前shell | >= 2.7.3 |
 | [os.cpuinfo](#oscpuinfo) | 获取CPU信息 | >= 2.1.5 |
 | [os.meminfo](#osmeminfo) | 获取内存信息 | >= 2.1.5 |
+| [os.default_njob](#osdefault_njob) | 获取默认编译任务数 | >= 2.5.8 |
 
 #### os.cp
 
@@ -1234,6 +1235,10 @@ print(os.meminfo())
 print(os.meminfo("pagesize")) -- probably got 4096
 ```
 
+#### os.default_njob
+
+- 获取默认编译任务数
+
 ### winos
 
 windows 系统操作模块,属于内置模块,无需使用[import](#import)导入,可直接脚本域调用其接口。