Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 311 for waiters (0.19 sec)

  1. pilot/pkg/xds/pushqueue.go

    		return
    	}
    
    	if request, f := p.pending[con]; f {
    		p.pending[con] = request.CopyMerge(pushRequest)
    		return
    	}
    
    	p.pending[con] = pushRequest
    	p.queue = append(p.queue, con)
    	// Signal waiters on Dequeue that a new item is available
    	p.cond.Signal()
    }
    
    // Remove a proxy from the queue. If there are no proxies ready to be removed, this will block
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 16 01:37:15 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    		panic("unlock called on a file that is not locked")
    	}
    
    	err := setlkw(f.Fd(), syscall.F_UNLCK)
    
    	mu.Lock()
    	l := locks[ino]
    	if len(l.queue) == 0 {
    		// No waiters: remove the map entry.
    		delete(locks, ino)
    	} else {
    		// The first waiter is sending us their file now.
    		// Receive it and update the queue.
    		l.owner = <-l.queue[0]
    		l.queue = l.queue[1:]
    		locks[ino] = l
    	}
    	delete(inodes, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. src/runtime/chan.go

    	closed   uint32
    	timer    *timer // timer feeding this chan
    	elemtype *_type // element type
    	sendx    uint   // send index
    	recvx    uint   // receive index
    	recvq    waitq  // list of recv waiters
    	sendq    waitq  // list of send waiters
    
    	// lock protects all fields in hchan, as well as several
    	// fields in sudogs blocked on this channel.
    	//
    	// Do not change another G's status while holding this lock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux_test.go

    			// needed, based on the number of available
    			// unlocked OS threads at the time waiter
    			// calls runtime.LockOSThread(), but the goal
    			// of doing this every time through the loop
    			// is to race thread creation with v.fn(want)
    			// being executed. Via the once boolean we
    			// also encourage one in 5 waiters to return
    			// locked after participating in only one
    			// question response sequence. This allows the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/runtime/runtime2.go

    	// because c was closed.
    	success bool
    
    	// waiters is a count of semaRoot waiting list other than head of list,
    	// clamped to a uint16 to fit in unused space.
    	// Only meaningful at the head of the list.
    	// (If we wanted to be overly clever, we could store a high 16 bits
    	// in the second entry in the list.)
    	waiters uint16
    
    	parent   *sudog // semaRoot binary tree
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        WaiterThread waiter1 = new WaiterThread(future);
        waiter1.start();
        waiter1.awaitWaiting();
    
        WaiterThread waiter2 = new WaiterThread(future);
        waiter2.start();
        waiter2.awaitWaiting();
        // The waiter queue should be waiter2->waiter1
    
        // This should wake up waiter1 and cause the waiter1 node to be removed.
        waiter1.interrupt();
    
        waiter1.join();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        WaiterThread waiter1 = new WaiterThread(future);
        waiter1.start();
        waiter1.awaitWaiting();
    
        WaiterThread waiter2 = new WaiterThread(future);
        waiter2.start();
        waiter2.awaitWaiting();
        // The waiter queue should be waiter2->waiter1
    
        // This should wake up waiter1 and cause the waiter1 node to be removed.
        waiter1.interrupt();
    
        waiter1.join();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go

    	}
    	w.Header().Set("Content-Type", contentType)
    	w.WriteHeader(statusCode)
    	// Flush headers, if possible
    	if flusher, ok := w.(http.Flusher); ok {
    		flusher.Flush()
    	}
    	writer := w.(io.Writer)
    	if flush {
    		writer = flushwriter.Wrap(w)
    	}
    	io.Copy(writer, out)
    }
    
    // SerializeObject renders an object in the content type negotiated by the client using the provided encoder.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    // Writer provides sequential writing of a tar archive.
    // [Writer.WriteHeader] begins a new file with the provided [Header],
    // and then Writer can be treated as an io.Writer to supply that file's data.
    type Writer struct {
    	w    io.Writer
    	pad  int64      // Amount of padding to write after current file entry
    	curr fileWriter // Writer for current file entry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/mime/quotedprintable/writer.go

    import "io"
    
    const lineMaxLen = 76
    
    // A Writer is a quoted-printable writer that implements [io.WriteCloser].
    type Writer struct {
    	// Binary mode treats the writer's input as pure binary and processes end of
    	// line bytes as binary data.
    	Binary bool
    
    	w    io.Writer
    	i    int
    	line [78]byte
    	cr   bool
    }
    
    // NewWriter returns a new [Writer] that writes to w.
    func NewWriter(w io.Writer) *Writer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top