Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 459 for signalM (0.2 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerAwaitableFileLockReleasedSignalTest.groovy

        @Subject def signal = new DefaultFileLockManager.AwaitableFileLockReleasedSignal()
    
        def "can reuse signal"() {
            given:
            def signalCount = new AtomicInteger()
    
            when:
            start {
                while (signalCount.get() < 2) {
                    def signaled = signal.await(10000)
                    if (signaled) {
                        signalCount.incrementAndGet()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/fuzz/sys_windows.go

    	return false
    }
    
    // terminationSignal returns -1 and false because Windows doesn't have signals.
    func terminationSignal(err error) (os.Signal, bool) {
    	return syscall.Signal(-1), false
    }
    
    // isCrashSignal is not implemented because Windows doesn't have signals.
    func isCrashSignal(signal os.Signal) bool {
    	panic("not implemented: no signals on windows")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:35:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt

    # FuzzKill sends itself a signal that cannot be caught by the worker process
    # and does not appear to be a crash.
    # We should not save a crasher.
    ! go test -fuzz=FuzzKill
    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    stdout 'fuzzing process terminated by unexpected signal; no crash will be recorded: signal: killed'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/exec.go

    //go:build !plan9 && !windows
    // +build !plan9,!windows
    
    package main
    
    /*
    #include <stddef.h>
    #include <signal.h>
    #include <pthread.h>
    
    // Save the signal mask at startup so that we see what it is before
    // the Go runtime starts setting up signals.
    
    static sigset_t mask;
    
    static void init(void) __attribute__ ((constructor));
    
    static void init() {
    	sigemptyset(&mask);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. src/os/exec_test.go

    	signal.Notify(c, os.Interrupt)
    	defer signal.Stop(c)
    
    	p := &os.Process{Pid: os.Getpid()}
    	if err := p.Signal(os.Interrupt); err != nil {
    		t.Fatalf("Signal got err %v, want nil", err)
    	}
    
    	// Verify we actually received the signal.
    	select {
    	case <-time.After(1 * time.Second):
    		t.Error("timeout waiting for signal")
    	case <-c:
    		// Good
    	}
    }
    
    func TestProcessReleaseTwice(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/os/signal/signal_linux_test.go

    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package signal
    
    import (
    	"os"
    	"syscall"
    	"testing"
    	"time"
    )
    
    const prSetKeepCaps = 8
    
    // This test validates that syscall.AllThreadsSyscall() can reliably
    // reach all 'm' (threads) of the nocgo runtime even when one thread
    // is blocked waiting to receive signals from the kernel. This monitors
    // for a regression vs. the fix for #43149.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

        }
    
        public static <T extends Signal> ExponentialBackoff<T> of(int amount, TimeUnit unit, T signal) {
            return new ExponentialBackoff<T>((int) TimeUnit.MILLISECONDS.convert(amount, unit), signal, SLOT_TIME);
        }
    
        public static ExponentialBackoff<Signal> of(int amount, TimeUnit unit, int slotTime, TimeUnit slotTimeUnit) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/eintr.go

    		}
    	}
    	return r1, r2
    }
    
    // winch sends a few SIGWINCH signals to the process.
    func winch() {
    	ticker := time.NewTicker(100 * time.Microsecond)
    	defer ticker.Stop()
    	pid := syscall.Getpid()
    	for n := 10; n > 0; n-- {
    		syscall.Kill(pid, syscall.SIGWINCH)
    		<-ticker.C
    	}
    }
    
    // sendSomeSignals triggers a few SIGURG and SIGWINCH signals.
    func sendSomeSignals() {
    	done := make(chan struct{})
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/tsan9.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // This program failed when run under the C/C++ ThreadSanitizer. The
    // TSAN library was not keeping track of whether signals should be
    // delivered on the alternate signal stack, and the Go signal handler
    // was not preserving callee-saved registers from C callers.
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    
    #include <stdlib.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. pkg/util/interrupt/interrupt.go

    	h.once.Do(func() {
    		for _, fn := range h.notify {
    			fn()
    		}
    	})
    }
    
    // Signal is called when an os.Signal is received, and guarantees that all notifications
    // are executed, then the final handler is executed. This function should only be called once
    // per Handler instance.
    func (h *Handler) Signal(s os.Signal) {
    	h.once.Do(func() {
    		for _, fn := range h.notify {
    			fn()
    		}
    		if h.final == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top