- Sort Score
- Result 10 results
- Languages All
Results 51 - 56 of 56 for lockOSThread (0.48 sec)
-
src/runtime/export_test.go
// will become invalid after a thread switch. This test // checks that the bad caching doesn't happen. ch := make(chan int) go func(ch chan int) { ch <- 5 LockOSThread() }(ch) g1 := getg() // Block on a receive. This is likely to get us a thread // switch. If we yield to the sender goroutine, it will // lock the thread, forcing us to resume on a different
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/os/exec/exec.go
// type [*ExitError]. Other error types may be returned for other situations. // // If the calling goroutine has locked the operating system thread // with [runtime.LockOSThread] and modified any inheritable OS-level // thread state (for example, Linux or Plan 9 name spaces), the new // process will inherit the caller's thread state. func (c *Cmd) Run() error { if err := c.Start(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 41.4K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
for i := 0; i < 100000; i++ { testCallbackPanic(t) } } func testCallbackPanicLocked(t *testing.T) { runtime.LockOSThread() defer runtime.UnlockOSThread() if !lockedOSThread() { t.Fatal("runtime.LockOSThread didn't") } defer func() { s := recover() if s == nil { t.Fatal("did not panic") } if s.(string) != "callback panic" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 111.5K bytes - Viewed (0) -
src/syscall/syscall_windows.go
// the index of the last subkey (obtainable from RegQueryInfoKey), // decrementing until index 0 is enumerated. // // Successive calls to this API must happen on the same OS thread, // so call [runtime.LockOSThread] before calling this function. func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 52.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"GOMAXPROCS", Func, 0}, {"GOOS", Const, 0}, {"GOROOT", Func, 0}, {"Goexit", Func, 0}, {"GoroutineProfile", Func, 0}, {"Gosched", Func, 0}, {"KeepAlive", Func, 7}, {"LockOSThread", Func, 0}, {"MemProfile", Func, 0}, {"MemProfileRate", Var, 0}, {"MemProfileRecord", Type, 0}, {"MemProfileRecord.AllocBytes", Field, 0}, {"MemProfileRecord.AllocObjects", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K 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: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)