MCPcopy Create free account
hub / github.com/bufbuild/buf / Parallelism

Function Parallelism

private/pkg/thread/thread.go:32–37  ·  view source on GitHub ↗

Parallelism returns the current parallelism. This defaults to the number of CPUs.

()

Source from the content-addressed store, hash-verified

30//
31// This defaults to the number of CPUs.
32func Parallelism() int {
33 globalLock.RLock()
34 parallelism := globalParallelism
35 globalLock.RUnlock()
36 return parallelism
37}
38
39// SetParallelism sets the parallelism.
40//

Callers 4

newFilesFunction · 0.92
compileImageFunction · 0.92
BuildImageFromOpenerFunction · 0.92
ParallelizeFunction · 0.85

Calls 2

RUnlockMethod · 0.80
RLockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…