Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for Signalfd (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/lifecycle_signals.go

    	// Signal is idempotent, once signaled the event stays signaled and
    	// it immediately unblocks any goroutine waiting for this event.
    	Signal()
    
    	// Signaled returns a channel that is closed when the underlying event
    	// has been signaled. Successive calls to Signaled return the same value.
    	Signaled() <-chan struct{}
    
    	// Name returns the name of the signal, useful for logging.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:30 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerAwaitableFileLockReleasedSignalTest.groovy

        def "can reuse signal"() {
            given:
            def signalCount = new AtomicInteger()
    
            when:
            start {
                while (signalCount.get() < 2) {
                    def signaled = signal.await(10000)
                    if (signaled) {
                        signalCount.incrementAndGet()
                    }
                }
            }
    
            then:
            poll {
                assert signal.waiting
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

        def "client receives signal when lock is released"() {
            def signaled = new AtomicBoolean()
    
            when:
            int port = handler.reservePort()
            handler.start(10) { signal ->
                signal.trigger()
            }
    
            client.reservePort()
            client.start(11) {}
            client.maybePingOwner(port, 10, "lock 1", 50000) {
                signaled.set(true)
            }
    
            then:
            poll {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/runtime/netpoll_windows.go

    		// so we still need to use a timeout with GetQueuedCompletionStatusEx.
    		// TODO: Improve the Go scheduler to support non-blocking timers.
    		signaled := netpollQueueTimer(delay)
    		if signaled {
    			// There is a small window between the SetWaitableTimer and the NtAssociateWaitCompletionPacket
    			// where the timer can expire. We can return immediately in this case.
    			return gList{}, 0
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

            Result<T> result;
            while (!(result = query.run()).isSuccessful()) {
                if (timer.hasExpired()) {
                    break;
                }
                boolean signaled = signal.await(backoffPeriodFor(++iteration));
                if (signaled) {
                    iteration = 0;
                }
            }
            return result.getValue();
        }
    
        long backoffPeriodFor(int iteration) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer.
    // TSAN defers asynchronous signals until the signaled thread calls into libc.
    // Since the Go runtime makes direct futex syscalls, Go runtime threads could
    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 798 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer. TSAN defers
    // asynchronous signals until the signaled thread calls into libc. The runtime's
    // sysmon goroutine idles itself using direct usleep syscalls, so it could
    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/request/server_shutdown_signal.go

    // ServerShutdownSignal is associated with the request context so
    // the request handler logic has access to signals rlated to
    // the server shutdown events
    type ServerShutdownSignal interface {
    	// Signaled when the apiserver is not receiving any new request
    	ShuttingDown() <-chan struct{}
    }
    
    // ServerShutdownSignalFrom returns the ServerShutdownSignal instance
    // associated with the request context.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:30 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/iter/iter.go

    // or after calling stop. These calls will continue
    // to return the zero V and false.
    //
    // Stop ends the iteration. It must be called when the caller is
    // no longer interested in next values and next has not yet
    // signaled that the sequence is over (with a false boolean return).
    // It is valid to call stop multiple times and when next has
    // already returned false.
    //
    // It is an error to call next or stop from multiple goroutines
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. src/runtime/time_linux_amd64.s

    	MOVQ	0(SP), CX	// monotonic sec
    	IMULQ	$1000000000, CX
    	MOVQ	8(SP), DX	// monotonic nsec
    
    	MOVQ	R12, SP		// Restore real SP
    
    	// Restore vdsoPC, vdsoSP
    	// We don't worry about being signaled between the two stores.
    	// If we are not in a signal handler, we'll restore vdsoSP to 0,
    	// and no one will care about vdsoPC. If we are in a signal handler,
    	// we cannot receive another signal.
    	MOVQ	8(SP), SI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top