- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 348 for timediv (0.14 sec)
-
src/runtime/runtime1.go
} if unsafe.Offsetof(y1.y) != 1 { throw("bad offsetof y1.y") } if unsafe.Sizeof(y1) != 2 { throw("bad unsafe.Sizeof y1") } if timediv(12345*1000000000+54321, 1000000000, &e) != 12345 || e != 54321 { throw("bad timediv") } var z uint32 z = 1 if !atomic.Cas(&z, 1, 2) { throw("cas1") } if z != 2 { throw("cas2") } z = 4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 19.3K bytes - Viewed (0) -
src/runtime/os_dragonfly.go
var timeout int32 if ns >= 0 { // The timeout is specified in microseconds - ensure that we // do not end up dividing to zero, which would put us to sleep // indefinitely... timeout = timediv(ns, 1000, nil) if timeout == 0 { timeout = 1 } } // sys_umtx_sleep will return EWOULDBLOCK (EAGAIN) when the timeout // expires or EBUSY if the mutex value does not match.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7.1K bytes - Viewed (0) -
src/runtime/os_plan9.go
// the OS clean up threads. throw("exitThread") } //go:nosplit func semacreate(mp *m) { } //go:nosplit func semasleep(ns int64) int { gp := getg() if ns >= 0 { ms := timediv(ns, 1000000, nil) if ms == 0 { ms = 1 } ret := plan9_tsemacquire(&gp.m.waitsemacount, ms) if ret == 1 { return 0 // success } return -1 // timeout or interrupted }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 10.3K bytes - Viewed (0) -
src/runtime/export_test.go
escapeSink = x } return x } // Acquirem blocks preemption. func Acquirem() { acquirem() } func Releasem() { releasem(getg().m) } var Timediv = timediv type PIController struct { piController } func NewPIController(kp, ti, tt, min, max float64) *PIController { return &PIController{piController{ kp: kp, ti: ti, tt: tt,
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/runtime/os_windows.go
) var result uintptr if ns < 0 { result = stdcall2(_WaitForSingleObject, getg().m.waitsema, uintptr(_INFINITE)) } else { start := nanotime() elapsed := int64(0) for { ms := int64(timediv(ns-elapsed, 1000000, nil)) if ms == 0 { ms = 1 } result = stdcall4(_WaitForMultipleObjects, 2, uintptr(unsafe.Pointer(&[2]uintptr{getg().m.waitsema, getg().m.resumesema})), 0, uintptr(ms))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 41.5K bytes - Viewed (0) -
src/runtime/os_linux.go
//go:noescape func setitimer(mode int32, new, old *itimerval) //go:noescape func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32 //go:noescape func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32 //go:noescape func timer_delete(timerid int32) int32 //go:noescape func rtsigprocmask(how int32, new, old *sigset, size int32) //go:nosplit //go:nowritebarrierrec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.9K bytes - Viewed (0) -
pkg/ctrlz/ctrlz_test.go
server := startAndWaitForServer(t) done := make(chan struct{}, 1) go func() { server.Close() done <- struct{}{} }() select { case <-done: case <-time.After(5 * time.Second): t.Fatal("Timed out waiting for listeningTestProbe to be called") } } func TestSignals(t *testing.T) { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGUSR1) server := startAndWaitForServer(t) defer server.Close()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 15 18:23:41 UTC 2024 - 2K bytes - Viewed (0) -
src/runtime/sys_linux_riscv64.s
// func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32 TEXT runtime·timer_create(SB),NOSPLIT,$0-28 MOVW clockid+0(FP), A0 MOV sevp+8(FP), A1 MOV timerid+16(FP), A2 MOV $SYS_timer_create, A7 ECALL MOVW A0, ret+24(FP) RET // func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32 TEXT runtime·timer_settime(SB),NOSPLIT,$0-28 MOVW timerid+0(FP), A0 MOVW flags+4(FP), A1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 11.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy
outputLines[1] == "Timed out task ':block' has not yet stopped." outputLines[outputLines.size() - 1] == "Timed out task ':block' has stopped." and: def logging = taskLogging(":block") logging[0] == "Requesting stop of task ':block' as it has exceeded its configured timeout of 500ms." logging[1] == "Timed out task ':block' has not yet stopped."
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 12.6K bytes - Viewed (0) -
src/runtime/sys_linux_loong64.s
// func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32 TEXT runtime·timer_create(SB),NOSPLIT,$0-28 MOVW clockid+0(FP), R4 MOVV sevp+8(FP), R5 MOVV timerid+16(FP), R6 MOVV $SYS_timer_create, R11 SYSCALL MOVW R4, ret+24(FP) RET // func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32 TEXT runtime·timer_settime(SB),NOSPLIT,$0-28 MOVW timerid+0(FP), R4 MOVW flags+4(FP), R5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 14.2K bytes - Viewed (0)