Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for unblockSend (0.28 sec)

  1. internal/lock/lock_test.go

    		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 {
    	case <-locked:
    	case <-time.After(1 * time.Second):
    		t.Error("unexpected blocking")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

            public boolean isImmediatelyAfter(ClockTickImpl other) {
                return number == other.number + 1;
            }
        }
    
        private enum State {
            Idle, Blocking, Blocked, Unblocking, Unblocked, Failed
        }
    
        private class SyncPoint {
            private final Lock lock = new ReentrantLock();
            private final Condition condition = lock.newCondition();
            private State state = State.Idle;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  3. src/cmd/trace/goroutinegen.go

    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		gs.start(start, goID, ctx)
    	}
    
    	if from == trace.GoWaiting {
    		// Goroutine unblocked.
    		gs.unblock(ev.Time(), ev.Stack(), ev.Goroutine(), ctx)
    	}
    	if from == trace.GoNotExist && to == trace.GoRunnable {
    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Goroutine(), ev.Stack())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

     *
     * Be careful when using values like [DisconnectAtEnd], [ShutdownInputAtEnd]
     * and [ShutdownOutputAtEnd] that close a socket after a response, and where there are
     * follow-up requests. The client is unblocked and free to continue as soon as it has received the
     * entire response body. If and when the client makes a subsequent request using a pooled socket the
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/ready.go

    		switch r.state {
    		case Pending:
    			// since we allow to switch between the states Pending and Ready
    			// if there is a quick transition from Pending -> Ready -> Pending
    			// a process that was waiting can get unblocked and see a Pending
    			// state again. If the state is Pending we have to wait again to
    			// avoid an inconsistent state on the system, with some processes not
    			// waiting despite the state moved back to Pending.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 16 13:32:11 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/trace/gstate.go

    // and orthogonal to syscallEnd; both must be called if the syscall blocked. This sets up an instant
    // to emit a flow event from, indicating explicitly that this goroutine was unblocked by the system.
    func (gs *gState[R]) blockedSyscallEnd(ts trace.Time, stack trace.Stack, ctx *traceContext) {
    	name := "exit blocked syscall"
    	gs.setStartCause(ts, name, trace.SyscallP, stack)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. src/cmd/trace/threadgen.go

    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		gs.start(start, ev.Thread(), ctx)
    	}
    
    	if from == trace.GoWaiting {
    		// Goroutine was unblocked.
    		gs.unblock(ev.Time(), ev.Stack(), ev.Thread(), ctx)
    	}
    	if from == trace.GoNotExist && to == trace.GoRunnable {
    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Thread(), ev.Stack())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/cmd/trace/procgen.go

    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		gs.start(start, ev.Proc(), ctx)
    	}
    
    	if from == trace.GoWaiting {
    		// Goroutine was unblocked.
    		gs.unblock(ev.Time(), ev.Stack(), ev.Proc(), ctx)
    	}
    	if from == trace.GoNotExist && to == trace.GoRunnable {
    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Proc(), ev.Stack())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. src/internal/trace/summary.go

    // scheduler (one has unblocked another).
    func RelatedGoroutinesV2(events []Event, goid GoID) map[GoID]struct{} {
    	// Process all the events, looking for transitions of goroutines
    	// out of GoWaiting. If there was an active goroutine when this
    	// happened, then we know that active goroutine unblocked another.
    	// Scribble all these down so we can process them.
    	type unblockEdge struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	case <-timer.C:
    	}
    
    	return func(t *testing.T) {
    		logTimer := time.NewTimer(quiescent)
    		defer logTimer.Stop()
    
    		select {
    		case <-logTimer.C:
    			// We expect the operation to have unblocked by now,
    			// but maybe it's just slow. Write to the test log
    			// in case the test times out, but don't fail it.
    			t.Helper()
    			t.Logf("%s is unexpectedly still blocked after %v", desc, quiescent)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top