Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for setitimer (0.14 sec)

  1. src/runtime/sys_openbsd2.go

    	errno = libcCall(unsafe.Pointer(abi.FuncPCABI0(pipe2_trampoline)), unsafe.Pointer(&args))
    	return p[0], p[1], errno
    }
    func pipe2_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func setitimer(mode int32, new, old *itimerval) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(setitimer_trampoline)), unsafe.Pointer(&mode))
    	KeepAlive(new)
    	KeepAlive(old)
    }
    func setitimer_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall2.go

    	n := sigset(0)
    	if new != nil {
    		n = *new
    	}
    	r := obsdsigprocmask(how, n)
    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    // mmap calls the mmap system call. It is implemented in assembly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/runtime/os_dragonfly.go

    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    func raiseproc(sig uint32)
    
    func lwp_gettid() int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/runtime/sys_freebsd_riscv64.s

    TEXT runtime·raiseproc(SB),NOSPLIT|NOFRAME,$0
    	MOV	$SYS_getpid, T0
    	ECALL
    	// arg 1 pid - already in A0
    	MOVW	sig+0(FP), A1	// arg 2
    	MOV	$SYS_kill, T0
    	ECALL
    	RET
    
    // func setitimer(mode int32, new, old *itimerval)
    TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0-24
    	MOVW	mode+0(FP), A0
    	MOV	new+8(FP), A1
    	MOV	old+16(FP), A2
    	MOV	$SYS_setitimer, T0
    	ECALL
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  5. src/runtime/sys_freebsd_arm64.s

    	SVC
    	RET
    
    // func raiseproc(sig uint32)
    TEXT runtime·raiseproc(SB),NOSPLIT|NOFRAME,$0
    	MOVD	$SYS_getpid, R8
    	SVC
    	MOVW	sig+0(FP), R1
    	MOVD	$SYS_kill, R8
    	SVC
    	RET
    
    // func setitimer(mode int32, new, old *itimerval)
    TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0-24
    	MOVW	mode+0(FP), R0
    	MOVD	new+8(FP), R1
    	MOVD	old+16(FP), R2
    	MOVD	$SYS_setitimer, R8
    	SVC
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy

            when:
            setTime(51243)
    
            then:
            timer.getElapsed() == "51.243 secs"
        }
    
        def testOnlySecondsEvenMs() {
            when:
            setTime(4000)
    
            then:
            timer.getElapsed() == "4.0 secs"
        }
    
        def testMinutesAndSeconds() {
            when:
            setTime(0, 32, 40, 322)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker_test.go

    	}
    
    	now := time.Now()
    	fakeClock.SetTime(now.Add(-61 * time.Minute))
    	tracker.Set("k1", 61)
    	fakeClock.SetTime(now.Add(-60 * time.Minute))
    	tracker.Set("k2", 60)
    	// we are going to prune keys that are stale for >= 1h
    	// so the above keys are expected to be pruned and the
    	// key below should not be pruned.
    	mostRecent := now.Add(-59 * time.Minute)
    	fakeClock.SetTime(mostRecent)
    	tracker.Set("k3", 59)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 19:36:14 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake_event_clock_test.go

    func exerciseSettablePassiveClock(t *testing.T, pc TestableEventClock) {
    	t1 := time.Now()
    	t2 := t1.Add(time.Hour)
    	pc.SetTime(t1)
    	tx := pc.Now()
    	if tx != t1 {
    		t.Errorf("SetTime(%#+v); Now() => %#+v", t1, tx)
    	}
    	dx := pc.Since(t1)
    	if dx != 0 {
    		t.Errorf("Since() => %v", dx)
    	}
    	pc.SetTime(t2)
    	dx = pc.Since(t1)
    	if dx != time.Hour {
    		t.Errorf("Since() => %v", dx)
    	}
    	tx = pc.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 07 04:07:31 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/time_budget_test.go

    	// wait for longer than the maxBudget
    	nextTime := time.Now().Add(10 * time.Second)
    	fakeClock.SetTime(nextTime)
    	if res := budget.takeAvailable(); res != budget.maxBudget {
    		t.Errorf("Expected: %v, got: %v", budget.maxBudget, res)
    	}
    	// add two refresh intervals to accumulate 2*refresh durations
    	nextTime = nextTime.Add(2 * time.Second)
    	fakeClock.SetTime(nextTime)
    	if res := budget.takeAvailable(); res != 2*budget.refresh {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    		if !ok || limit != nil && t.After(*limit) {
    			break
    		}
    		fec.SetTime(t)
    	}
    }
    
    // SetTime sets the time and runs to completion all events that should
    // be started by the given time --- including any further events they
    // schedule
    func (fec *Fake) SetTime(t time.Time) {
    	fec.FakePassiveClock.SetTime(t)
    	for {
    		foundSome := false
    		func() {
    			fec.waitersLock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
Back to top