Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 934 for BigVal (0.15 sec)

  1. src/crypto/x509/oid.go

    			bigVal = bigVal.Lsh(bigVal, bitsPerByte).Or(bigVal, big.NewInt(int64(curVal)))
    			if valEnd {
    				if start == 0 {
    					b.WriteString("2.")
    					bigVal = bigVal.Sub(bigVal, big.NewInt(80))
    				}
    				numBuf = bigVal.Append(numBuf, 10)
    				b.Write(numBuf)
    				numBuf = numBuf[:0]
    				val = 0
    				start = i + 1
    				overflow = false
    			}
    			continue
    		}
    		val <<= bitsPerByte
    		val |= uint64(curVal)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/runtime/race/testdata/map_test.go

    	<-ch
    }
    
    func TestRaceMapBigValInsert(t *testing.T) {
    	m := make(map[int]BigVal)
    	var v BigVal
    	ch := make(chan bool, 1)
    	go func() {
    		m[1] = v
    		ch <- true
    	}()
    	v.y[30] = new(int)
    	<-ch
    }
    
    func TestRaceMapBigValAccess1(t *testing.T) {
    	m := make(map[int]BigVal)
    	var v BigVal
    	ch := make(chan bool, 1)
    	go func() {
    		v = m[1]
    		ch <- true
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  3. src/runtime/map_benchmark_test.go

    	m := make(map[BigKey]bool)
    	k := BigKey{3, 4, 5}
    	m[k] = true
    	for i := 0; i < b.N; i++ {
    		_ = m[k]
    	}
    }
    
    type BigVal [3]int64
    
    func BenchmarkBigValMap(b *testing.B) {
    	m := make(map[BigKey]BigVal)
    	k := BigKey{3, 4, 5}
    	m[k] = BigVal{6, 7, 8}
    	for i := 0; i < b.N; i++ {
    		_ = m[k]
    	}
    }
    
    func BenchmarkSmallKeyMap(b *testing.B) {
    	m := make(map[int16]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/os/signal/signal.go

    )
    
    // Notify causes package signal to relay incoming signals to c.
    // If no signals are provided, all incoming signals will be relayed to c.
    // Otherwise, just the provided signals will.
    //
    // Package signal will not block sending to c: the caller must ensure
    // that c has sufficient buffer space to keep up with the expected
    // signal rate. For a channel used for notification of just one signal value,
    // a buffer of size 1 is sufficient.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/signal.go

    	shutdownHandler = make(chan os.Signal, 2)
    
    	ctx, cancel := context.WithCancel(context.Background())
    	signal.Notify(shutdownHandler, shutdownSignals...)
    	go func() {
    		<-shutdownHandler
    		cancel()
    		<-shutdownHandler
    		os.Exit(1) // second signal. Exit directly.
    	}()
    
    	return ctx
    }
    
    // RequestShutdown emulates a received event that is considered as shutdown signal (SIGTERM/SIGINT)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 14:30:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/base/signal.go

    // license that can be found in the LICENSE file.
    
    package base
    
    import (
    	"os"
    	"os/signal"
    	"sync"
    )
    
    // Interrupted is closed when the go command receives an interrupt signal.
    var Interrupted = make(chan struct{})
    
    // processSignals setups signal handler.
    func processSignals() {
    	sig := make(chan os.Signal, 1)
    	signal.Notify(sig, signalsToIgnore...)
    	go func() {
    		<-sig
    		close(Interrupted)
    	}()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 02 16:43:58 UTC 2020
    - 663 bytes
    - Viewed (0)
  7. pkg/scheduler/internal/cache/debugger/signal.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package debugger
    
    import "syscall"
    
    // compareSignal is the signal to trigger cache compare. For non-windows
    // environment it's SIGUSR2.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 785 bytes
    - Viewed (0)
  8. src/runtime/testdata/testprognet/signal.go

    // must not import anything (like net, but also like os/signal)
    // that kicks off background goroutines during init.
    
    package main
    
    import (
    	"os/signal"
    	"syscall"
    )
    
    func init() {
    	register("SignalIgnoreSIGTRAP", SignalIgnoreSIGTRAP)
    }
    
    func SignalIgnoreSIGTRAP() {
    	signal.Ignore(syscall.SIGTRAP)
    	syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 646 bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/signal.go

    	// Should die immediately, but we've seen flakiness on various
    	// systems (see issue 14063). It's possible that the signal is
    	// being delivered to a different thread and we are returning
    	// and exiting before that thread runs again. Give the program
    	// a little while to die to make sure we pick up the signal
    	// before we return and exit the program. The time here
    	// shouldn't matter--we'll never really sleep this long.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 861 bytes
    - Viewed (0)
  10. src/runtime/defs_openbsd.go

    */
    
    package runtime
    
    /*
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/time.h>
    #include <sys/unistd.h>
    #include <sys/signal.h>
    #include <errno.h>
    #include <fcntl.h>
    #include <pthread.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_NONBLOCK = C.O_NONBLOCK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:23 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top