2 Star 4 Fork 10

王布衣/engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
runtime.go 205 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2023-10-01 17:49 . 增加第一个策略执行的demo
package functions
import "runtime"
// GOMAXPROCS 设置CPU核数
func GOMAXPROCS(n ...int) {
numCPU := runtime.NumCPU() / 2
if len(n) > 0 && n[0] > 0 {
numCPU = n[0]
}
runtime.GOMAXPROCS(numCPU)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/quant1x/engine.git
git@gitee.com:quant1x/engine.git
quant1x
engine
engine
v0.1.5

搜索帮助

Cb406eda 1850385 E526c682 1850385