- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 386 for signalM (0.14 sec)
-
src/cmd/cgo/internal/testcarchive/testdata/libgo4/libgo4.go
package main /* #include <signal.h> #include <pthread.h> // Raise SIGIO. static void CRaiseSIGIO(pthread_t* p) { pthread_kill(*p, SIGIO); } */ import "C" import ( "os" "os/signal" "sync/atomic" "syscall" ) var sigioCount int32 // Catch SIGIO. // //export GoCatchSIGIO func GoCatchSIGIO() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGIO)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 854 bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/runtime/cgo/gcc_netbsd.c
free(v); // On NetBSD, a new thread inherits the signal stack of the // creating thread. That confuses minit, so we remove that // signal stack here before calling the regular mstart. It's // a bit baroque to remove a signal stack here only to add one // in minit, but it's a simple change that keeps NetBSD // working like other OS's. At this point all signals are // blocked, so there is no race. memset(&ss, 0, sizeof ss);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:55:51 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/racesig.go
//go:build unix // +build unix package main // Test that an external C thread that is calling malloc can be hit // with SIGCHLD signals. This used to fail when built with the race // detector, because in that case the signal handler would indirectly // call the C malloc function. /* #include <errno.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <sched.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 01:46:05 UTC 2023 - 1.7K bytes - Viewed (0)