- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 161 for mp (0.06 sec)
-
src/runtime/os_openbsd.go
return -1 } } } //go:nosplit func semawakeup(mp *m) { atomic.Xadd(&mp.waitsemacount, 1) ret := thrwakeup(uintptr(unsafe.Pointer(&mp.waitsemacount)), 1) if ret != 0 && ret != _ESRCH { // semawakeup can be called on signal stack. systemstack(func() { print("thrwakeup addr=", &mp.waitsemacount, " sem=", mp.waitsemacount, " ret=", ret, "\n") }) } } func osinit() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.2K bytes - Viewed (0) -
test/fixedbugs/issue43428.go
// license that can be found in the LICENSE file. package p import "time" type T int func (T) Mv() {} func (*T) Mp() {} var _ = []int{ T.Mv, // ERROR "cannot use T\.Mv|incompatible type" (*T).Mv, // ERROR "cannot use \(\*T\)\.Mv|incompatible type" (*T).Mp, // ERROR "cannot use \(\*T\)\.Mp|incompatible type" time.Time.GobEncode, // ERROR "cannot use time\.Time\.GobEncode|incompatible type"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 31 05:52:09 UTC 2020 - 722 bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
t.Fatalf("expected 3 mounts, got %d", len(mounts)) } mp := mountInfo{"/dev/0", "/path/to/0", "type0", []string{"flags"}, "0", "0"} if !mountPointsEqual(mounts[0], mp) { t.Errorf("got unexpected MountPoint[0]: %#v", mounts[0]) } mp = mountInfo{"/dev/1", "/path/to/1", "type1", []string{"flags"}, "1", "1"} if !mountPointsEqual(mounts[1], mp) { t.Errorf("got unexpected mountInfo[1]: %#v", mounts[1]) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0) -
src/runtime/export_unix_test.go
// a non-zero byte to w, WaitForSigusr1 returns immediately with -1, -1. func WaitForSigusr1(r, w int32, ready func(mp *M)) (int64, int64) { lockOSThread() // Make sure we can receive SIGUSR1. unblocksig(_SIGUSR1) waitForSigusr1.rdpipe = r waitForSigusr1.wrpipe = w mp := getg().m testSigusr1 = waitForSigusr1Callback ready(mp) // Wait for the signal. We use a pipe rather than a note // because write is always async-signal-safe.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 21:27:51 UTC 2023 - 2.3K bytes - Viewed (0) -
src/runtime/lock_sema.go
// // func semacreate(mp *m) // Create a semaphore for mp, if it does not already have one. // // func semasleep(ns int64) int32 // If ns < 0, acquire m's semaphore and return 0. // If ns >= 0, try to acquire m's semaphore for at most ns nanoseconds. // Return 0 if the semaphore was acquired, -1 if interrupted or timed out. // // func semawakeup(mp *m) // Wake up mp, which is or will soon be sleeping on its semaphore.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 6.8K bytes - Viewed (0) -
test/typeparam/pair.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 739 bytes - Viewed (0) -
src/runtime/traceruntime.go
// // Perform a traceAcquire/traceRelease on behalf of mp to // synchronize with the tracer trying to flush our buffer // as well. seq := mp.trace.seqlock.Add(1) if debugTraceReentrancy && seq%2 != 1 { throw("bad use of trace.seqlock or tracer is reentrant") } systemstack(func() { lock(&trace.lock) for i := range mp.trace.buf { if mp.trace.buf[i] != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 25.7K bytes - Viewed (0) -
src/runtime/cgocall.go
// trace event in entersyscall above. mp.ncgo++ errno := asmcgocall(fn, arg) // Update accounting before exitsyscall because exitsyscall may // reschedule us on to a different M. mp.incgo = false mp.ncgo-- osPreemptExtExit(mp) // Save current syscall parameters, so m.winsyscall can be // used again if callback decide to make syscall. winsyscall := mp.winsyscall exitsyscall()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/runtime/os_linux.go
// executes the system call exactly once. for mp := allm; mp != nil; mp = mp.alllink { for atomic.Load64(&mp.procid) == 0 { // Thread is starting. osyield() } } // Signal every other thread, where they will execute perThreadSyscall // from the signal handler. gp := getg() tid := gp.m.procid for mp := allm; mp != nil; mp = mp.alllink { if atomic.Load64(&mp.procid) == tid {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.9K bytes - Viewed (0) -
src/runtime/lock_js.go
id := scheduleTimeoutEvent(delay) mp := acquirem() notes[n] = gp notesWithTimeout[n] = noteWithTimeout{gp: gp, deadline: deadline} releasem(mp) gopark(nil, nil, waitReasonSleep, traceBlockSleep, 1) clearTimeoutEvent(id) // note might have woken early, clear timeout mp = acquirem() delete(notes, n) delete(notesWithTimeout, n) releasem(mp) return n.key == note_woken }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 7.3K bytes - Viewed (0)