MCPcopy
hub / github.com/deepfence/SecretScanner / InitThreads

Method InitThreads

core/session.go:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (s *Session) InitThreads() {
33 if *s.Options.Threads == 0 {
34 numCPUs := runtime.NumCPU()
35 s.Options.Threads = &numCPUs
36 }
37
38 runtime.GOMAXPROCS(*s.Options.Threads + 1)
39}
40
41func GetSession() *Session {
42 sessionSync.Do(func() {

Callers 1

StartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected