- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for LockOSThread (0.4 sec)
-
misc/cgo/gmp/fib.go
) func fibber(c chan *big.Int, out chan string, n int64) { // Keep the fibbers in dedicated operating system // threads, so that this program tests coordination // between pthreads and not just goroutines. runtime.LockOSThread() i := big.NewInt(n) if n == 0 { c <- i } for { j := <-c out <- j.String() i.Add(i, j) c <- i } } func main() { c := make(chan *big.Int)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 919 bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux.go
// leave the thread locked to die without a risk of the current thread // left lingering with incorrect namespace. var innerError error go func() { defer wg.Done() runtime.LockOSThread() innerError = containedCall() }() wg.Wait() return innerError
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jan 31 10:05:36 UTC 2024 - 2.7K bytes - Viewed (0) -
api/go1.txt
pkg runtime, func GOMAXPROCS(int) int pkg runtime, func GOROOT() string pkg runtime, func Goexit() pkg runtime, func GoroutineProfile([]StackRecord) (int, bool) pkg runtime, func Gosched() pkg runtime, func LockOSThread() pkg runtime, func MemProfile([]MemProfileRecord, bool) (int, bool) pkg runtime, func NumCPU() int pkg runtime, func NumCgoCall() int64 pkg runtime, func NumGoroutine() int
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)