- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for numSig (3.15 sec)
-
src/os/signal/signal_plan9.go
func init() { watchSignalLoop = loop } func loop() { for { process(syscall.Note(signal_recv())) } } const numSig = 256 func signum(sig os.Signal) int { switch sig := sig.(type) { case syscall.Note: n, ok := sigtab[sig] if !ok { n = len(sigtab) + 1 if n > numSig { return -1 } sigtab[sig] = n } return n default: return -1 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 01 23:55:34 UTC 2020 - 1K bytes - Viewed (0) -
src/os/signal/signal_unix.go
for { process(syscall.Signal(signal_recv())) } } func init() { watchSignalLoop = loop } const ( numSig = 65 // max across all systems ) func signum(sig os.Signal) int { switch sig := sig.(type) { case syscall.Signal: i := int(sig) if i < 0 || i >= numSig { return -1 } return i default: return -1 } } func enableSignal(sig int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 1K bytes - Viewed (0) -
src/os/signal/signal.go
"os" "sync" ) var handlers struct { sync.Mutex // Map a channel to the signals that should be sent to it. m map[chan<- os.Signal]*handler // Map a signal to the number of channels receiving it. ref [numSig]int64 // Map channels to signals while the channel is being stopped. // Not a map because entries live here only very briefly. // We need a separate container because we need m to correspond to ref
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go
if err != nil || !isValidName(name) || b64 == "" || len(sig) < 5 { return nil, errMalformedNote } hash := binary.BigEndian.Uint32(sig[0:4]) sig = sig[4:] if numSig++; numSig > 100 { // Avoid spending forever parsing a note with many signatures. return nil, errMalformedNote } v, err := known.Verifier(name, hash) if _, ok := err.(*UnknownVerifierError); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1_test.go
podUID := types.UID("pod-uid") containerName := "container-name" numaID := int64(1) mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() devs := []*podresourcesapi.ContainerDevices{ { ResourceName: "resource", DeviceIds: []string{"dev0", "dev1"}, Topology: &podresourcesapi.TopologyInfo{Nodes: []*podresourcesapi.NUMANode{{ID: numaID}}}, }, } cpus := []int64{12, 23, 30}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
src/os/user/listgroups_unix.go
if len(parts) != 3 || len(parts[0]) == 0 { continue } gid := string(parts[2]) // Make sure it's numeric and not the same as primary GID. numGid, err := strconv.Atoi(gid) if err != nil || numGid == primaryGid { continue } groups = append(groups, gid) } return groups, nil } func listGroups(u *User) ([]string, error) { f, err := os.Open(groupFile)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 2.9K bytes - Viewed (0) -
test/goprint.go
go println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255)) for { numg := runtime.NumGoroutine() if numg > numg0 { if time.Now().After(deadline) { log.Fatalf("%d goroutines > initial %d after deadline", numg, numg0) } runtime.Gosched() continue } break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 10 19:38:06 UTC 2019 - 722 bytes - Viewed (0) -
src/text/template/funcs.go
return reflect.Value{}, err } numIn := typ.NumIn() var dddType reflect.Type if typ.IsVariadic() { if len(args) < numIn-1 { return reflect.Value{}, fmt.Errorf("wrong number of args for %s: got %d want at least %d", name, len(args), numIn-1) } dddType = typ.In(numIn - 1).Elem() } else { if len(args) != numIn {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 20.9K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/pod_devices.go
continue } devicePluginMap := make(map[string]pluginapi.Device) for numaid, devlist := range allocateInfo.deviceIds { for _, devID := range devlist { var topology *pluginapi.TopologyInfo if numaid != nodeWithoutTopology { NUMANodes := []*pluginapi.NUMANode{{ID: numaid}} if pDev, ok := devicePluginMap[devID]; ok && pDev.Topology != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jan 27 02:10:25 UTC 2024 - 16.7K bytes - Viewed (0) -
src/text/template/exec.go
} typ := fun.Type() numIn := len(args) if !isMissing(final) { numIn++ } numFixed := len(args) if typ.IsVariadic() { numFixed = typ.NumIn() - 1 // last arg is the variadic one. if numIn < numFixed { s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args)) } } else if numIn != typ.NumIn() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0)