Commit e49ed758 authored by AlexStocks's avatar AlexStocks

Imp: set gr number by proc number instead of cpu number

parent 3ac9f982
......@@ -238,7 +238,7 @@ type taskPoolSimple struct {
// NewTaskPoolSimple build a simple task pool
func NewTaskPoolSimple(size int) GenericTaskPool {
if size < 1 {
size = runtime.NumCPU() * 100
size = runtime.GOMAXPROCS(-1) * 100
}
return &taskPoolSimple{
work: make(chan task),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment