Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for setitimer (0.18 sec)

  1. src/runtime/os_linux.go

    		// accurate reporting of its CPU usage; see issue 35057) and ignore any
    		// that it gets from the process-wide setitimer (to not over-count its
    		// CPU consumption).
    		return timer_create
    	}
    
    	// No active per-thread timer means the only valid profiler is setitimer.
    	return setitimer
    }
    
    func setProcessCPUProfiler(hz int32) {
    	setProcessCPUProfilerTimer(hz)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/runtime/os3_solaris.go

    //go:cgo_import_dynamic libc_sem_post sem_post "libc.so"
    //go:cgo_import_dynamic libc_sem_reltimedwait_np sem_reltimedwait_np "libc.so"
    //go:cgo_import_dynamic libc_sem_wait sem_wait "libc.so"
    //go:cgo_import_dynamic libc_setitimer setitimer "libc.so"
    //go:cgo_import_dynamic libc_sigaction sigaction "libc.so"
    //go:cgo_import_dynamic libc_sigaltstack sigaltstack "libc.so"
    //go:cgo_import_dynamic libc_sigprocmask sigprocmask "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	}
    }
    
    // A value which may be passed to the which parameter for Getitimer and
    // Setitimer.
    type ItimerWhich int
    
    // Possible which values for Getitimer and Setitimer.
    const (
    	ItimerReal    ItimerWhich = ITIMER_REAL
    	ItimerVirtual ItimerWhich = ITIMER_VIRTUAL
    	ItimerProf    ItimerWhich = ITIMER_PROF
    )
    
    // Getitimer wraps getitimer(2) to return the current value of the timer
    // specified by which.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin.go

    //go:cgo_unsafe_args
    func raiseproc(sig uint32) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(raiseproc_trampoline)), unsafe.Pointer(&sig))
    }
    func raiseproc_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: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/runtime/os_netbsd.go

    	// From NetBSD's <sys/ucontext.h>
    	_UC_SIGMASK = 0x01
    	_UC_CPU     = 0x04
    
    	// From <sys/lwp.h>
    	_LWP_DETACHED = 0x00000040
    )
    
    type mOS struct {
    	waitsemacount uint32
    }
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. src/runtime/signal_unix.go

    			setsig(_SIGPROF, abi.FuncPCABIInternal(sighandler))
    		}
    
    		var it itimerval
    		it.it_interval.tv_sec = 0
    		it.it_interval.set_usec(1000000 / hz)
    		it.it_value = it.it_interval
    		setitimer(_ITIMER_PROF, &it, nil)
    	} else {
    		setitimer(_ITIMER_PROF, &itimerval{}, nil)
    
    		// If the Go signal handler should be disabled by default,
    		// switch back to the signal handler that was installed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux.go

    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func getitimer(which int, currValue *Itimerval) (err error) {
    	_, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. 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)
Back to top