MCPcopy
hub / github.com/eth0izzle/shhgit / InitThreads

Method InitThreads

core/session.go:87–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87func (s *Session) InitThreads() {
88 if *s.Options.Threads == 0 {
89 numCPUs := runtime.NumCPU()
90 s.Options.Threads = &numCPUs
91 }
92
93 runtime.GOMAXPROCS(*s.Options.Threads + 1)
94}
95
96func (s *Session) InitCsvWriter() {
97 if *s.Options.CsvPath == "" {

Callers 1

StartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected