- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for tidExists (0.07 sec)
-
src/runtime/testdata/testprog/syscalls_none.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !linux // +build !linux package main func gettid() int { return 0 } func tidExists(tid int) (exists, supported bool, err error) { return false, false, nil } func getcwd() (string, error) { return "", nil } func unshareFs() error { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 471 bytes - Viewed (0) -
src/runtime/testdata/testprog/syscalls_linux.go
package main import ( "bytes" "fmt" "internal/testenv" "io" "os" "syscall" ) func gettid() int { return syscall.Gettid() } func tidExists(tid int) (exists, supported bool, err error) { // Open the magic proc status file for reading with the syscall package. // We want to identify certain valid errors very precisely.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 2.2K bytes - Viewed (0) -
src/runtime/testdata/testprog/lockosthread.go
// Check that this goroutine is running on a different thread. if subTID != 0 && gettid() == subTID { println("locked thread reused") os.Exit(1) } exists, supported, err := tidExists(subTID) if err != nil { println("error:", err.Error()) return } if !supported || !exists { goto ok } } println("sub thread", subTID, "still running") return ok:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 6.6K bytes - Viewed (0)