Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for choosing (2.55 sec)

  1. src/runtime/mksizeclasses.go

    //
    // Each size class has its own page count that gets allocated
    // and chopped up when new objects of the size class are needed.
    // That page count is chosen so that chopping up the run of
    // pages into objects of the given size wastes at most 12.5% (1.125x)
    // of the memory. It is not necessary that the cutoff here be
    // the same as above.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. src/database/sql/sql.go

    		db.maxIdleCount = db.maxOpen
    	}
    	var closing []*driverConn
    	idleCount := len(db.freeConn)
    	maxIdle := db.maxIdleConnsLocked()
    	if idleCount > maxIdle {
    		closing = db.freeConn[maxIdle:]
    		db.freeConn = db.freeConn[:maxIdle]
    	}
    	db.maxIdleClosed += int64(len(closing))
    	db.mu.Unlock()
    	for _, c := range closing {
    		c.Close()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  3. internal/grid/muxclient.go

    	m.respMu.Lock()
    	defer m.respMu.Unlock()
    	if m.closed {
    		return false
    	}
    	select {
    	case m.respWait <- r:
    		if r.Err != nil {
    			if debugPrint {
    				fmt.Println("Closing mux", m.MuxID, "due to error:", r.Err)
    			}
    			m.closeLocked()
    		}
    		return true
    	default:
    		if m.stateless {
    			// Drop message if not stateful.
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  4. internal/logger/target/kafka/kafka.go

    	failedMessages int64
    
    	wg sync.WaitGroup
    
    	// Channel of log entries.
    	// Reading logCh must hold read lock on logChMu (to avoid read race)
    	// Sending a value on logCh must hold read lock on logChMu (to avoid closing)
    	logCh   chan interface{}
    	logChMu sync.RWMutex
    
    	// store to persist and replay the logs to the target
    	// to avoid missing events when the target is down.
    	store          store.Store[interface{}]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/runtime/debug/stack.go

    		// This also alleviates us from concerns about the
    		// lifetime and finalization of f.
    		// (DupCloseOnExec returns an fd, not a *File, so
    		// there is no finalizer, and we are responsible for
    		// closing it.)
    		//
    		// The new fd must be close-on-exec, otherwise if the
    		// crash monitor is a child process, it may inherit
    		// it, so it will never see EOF from the pipe even
    		// when this process crashes.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/sync/cond.go

    // 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).
    //
    // For more on replacements for [sync.Cond], see [Roberto Clapis's series on
    // advanced concurrency patterns], as well as [Bryan Mills's talk on concurrency
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/runtime/runtime.go

    	if panicking.Load() > 0 {
    		return ^uintptr(0)
    	}
    
    	old := crashFD.Swap(fd)
    
    	// If we are panicking, don't return the old FD to runtime/debug for
    	// closing. writeErrData may have already read the old FD from crashFD
    	// before the swap and closing it would cause the write to be lost [1].
    	// The old FD will never be closed, but we are about to crash anyway.
    	//
    	// On the writeErrData thread, panicking.Add(1) happens-before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. JavadocStyleGuide.md

     * B
     ```
    
    ```java
    /**
     * A
     * <p>
     * B
     ```
    
    Render as:
    
    ```text
    A
    B
    ```
    
    If you want to stop IntelliJ IDEA from auto closing HTML tags:
    `Settings -> Editor -> General -> Smart Keys -> "Insert closing tag on tag completion"`
    
    ### 1.5.2 Android Studio
    
    Android studio will not display javadoc following a `<p>` so make sure your summary fragment is well detailed:
    
    ```java
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 15:43:07 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. src/os/pidfd_linux.go

    	// is guaranteed to refer to one particular process). Thus, there is no
    	// need for the workaround (blockUntilWaitable + sigMu) from pidWait.
    	//
    	// We _do_ need to be careful about reuse of the pidfd FD number when
    	// closing the pidfd. See handle for more details.
    	handle, status := p.handleTransientAcquire()
    	switch status {
    	case statusDone:
    		// Process already completed Wait, or was not found by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/encoding/json/decode.go

    	var origErrorContext errorContext
    	if d.errorContext != nil {
    		origErrorContext = *d.errorContext
    	}
    
    	for {
    		// Read opening " of string key or closing }.
    		d.scanWhile(scanSkipSpace)
    		if d.opcode == scanEndObject {
    			// closing } - can only happen on first iteration.
    			break
    		}
    		if d.opcode != scanBeginLiteral {
    			panic(phasePanicMsg)
    		}
    
    		// Read key.
    		start := d.readIndex()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top