Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for unblocksig (0.23 sec)

  1. guava/src/com/google/common/util/concurrent/OverflowAvoidingLockSupport.java

      private OverflowAvoidingLockSupport() {}
    
      static void parkNanos(@CheckForNull Object blocker, long nanos) {
        // Even in the extremely unlikely event that a thread unblocks itself early after only 68 years,
        // this is indistinguishable from a spurious wakeup, which LockSupport allows.
        LockSupport.parkNanos(blocker, min(nanos, MAX_NANOSECONDS_THRESHOLD));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/futile-wakeup.go

    // license that can be found in the LICENSE file.
    
    // Tests to make sure the runtime doesn't generate futile wakeups. For example,
    // it makes sure that a block on a channel send that unblocks briefly only to
    // immediately go back to sleep (in such a way that doesn't reveal any useful
    // information, and is purely an artifact of the runtime implementation) doesn't
    // make it into the trace.
    
    //go:build ignore
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/runtime/trace/trace.go

    // for the Go execution tracer.
    //
    // # Tracing runtime activities
    //
    // The execution trace captures a wide range of execution events such as
    // goroutine creation/blocking/unblocking, syscall enter/exit/block,
    // GC-related events, changes of heap size, processor start/stop, etc.
    // When CPU profiling is active, the execution tracer makes an effort to
    // include those samples as well.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/CleanUpVirtualFileSystemAfterBuild.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.util.concurrent.CompletableFuture;
    import java.util.concurrent.ExecutionException;
    
    /**
     * Asynchronously cleans up the VFS after a build.
     *
     * Unblocks the client to receive the build finished event while the cleanup is happening.
     * However, the next build is not allowed to start until the cleanup is finished.
     */
    @NonNullApi
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/net/fd_unix.go

    				ret = mapErr(ctxErr)
    				fd.Close() // prevent a leak
    			}
    		}()
    		go func() {
    			select {
    			case <-ctxDone:
    				// Force the runtime's poller to immediately give up
    				// waiting for writability, unblocking waitWrite
    				// below.
    				fd.pfd.SetWriteDeadline(aLongTimeAgo)
    				testHookCanceledDial()
    				interruptRes <- ctx.Err()
    			case <-done:
    				interruptRes <- nil
    			}
    		}()
    	}
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 20:19:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. internal/lock/lock_test.go

    			t.Error(blerr)
    			return
    		}
    		locked <- struct{}{}
    		if blerr = bl.Close(); blerr != nil {
    			t.Error(blerr)
    			return
    		}
    	}()
    
    	select {
    	case <-locked:
    		t.Error("unexpected unblocking")
    	case <-time.After(100 * time.Millisecond):
    	}
    
    	// unlock
    	if err = dupl.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	// the previously blocked routine should be unblocked
    	select {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. src/sync/cond.go

    //
    // A Cond must not be copied after first use.
    //
    // In the terminology of [the Go memory model], Cond arranges that
    // a call to [Cond.Broadcast] or [Cond.Signal] “synchronizes before” any Wait call
    // that it unblocks.
    //
    // For many simple use cases, users will be better off using channels than a
    // Cond (Broadcast corresponds to closing a channel, and Signal corresponds to
    // sending on a channel).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/sync/waitgroup.go

    //
    // A WaitGroup must not be copied after first use.
    //
    // In the terminology of [the Go memory model], a call to [WaitGroup.Done]
    // “synchronizes before” the return of any Wait call that it unblocks.
    //
    // [the Go memory model]: https://go.dev/ref/mem
    type WaitGroup struct {
    	noCopy noCopy
    
    	state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
    	sema  uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/runtime/rwmutex.go

    	if r := rw.readerCount.Add(-1); r < 0 {
    		if r+1 == 0 || r+1 == -rwmutexMaxReaders {
    			throw("runlock of unlocked rwmutex")
    		}
    		// A writer is pending.
    		if rw.readerWait.Add(-1) == 0 {
    			// The last reader unblocks the writer.
    			lock(&rw.rLock)
    			w := rw.writer.ptr()
    			if w != nil {
    				notewakeup(&w.park)
    			}
    			unlock(&rw.rLock)
    		}
    	}
    	releaseLockRankAndM(rw.readRank)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. internal/grid/muxserver.go

    	if msg.DeadlineMS == 0 || msg.DeadlineMS > uint32(4*c.clientPingInterval/time.Millisecond) {
    		go func() {
    			wg.Wait()
    			m.checkRemoteAlive()
    		}()
    	}
    	return &m
    }
    
    // handleInbound sends unblocks when we have delivered the message to the handler.
    func (m *muxServer) handleInbound(c *Connection, inbound <-chan []byte, handlerIn chan<- []byte) {
    	for {
    		select {
    		case <-m.ctx.Done():
    			return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top