Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 488 for nwait (0.04 sec)

  1. src/runtime/sema.go

    	}
    	for {
    		lockWithRank(&root.lock, lockRankRoot)
    		// Add ourselves to nwait to disable "easy case" in semrelease.
    		root.nwait.Add(1)
    		// Check cansemacquire to avoid missed wakeup.
    		if cansemacquire(addr) {
    			root.nwait.Add(-1)
    			unlock(&root.lock)
    			break
    		}
    		// Any semrelease after the cansemacquire knows we're waiting
    		// (we set nwait above), so go to sleep.
    		root.queue(addr, s, lifo)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    	// will be, so we pretend to have an arbitrarily large number
    	// of workers, almost all of which are "waiting". While a
    	// worker is working it decrements nwait. If nproc == nwait,
    	// there are no workers.
    	work.nproc = ^uint32(0)
    	work.nwait = ^uint32(0)
    }
    
    // gcBgMarkWorkerNode is an entry in the gcBgMarkWorkerPool. It points to a single
    // gcBgMarkWorker goroutine.
    type gcBgMarkWorkerNode struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    	return &root.lock
    }
    
    var Semacquire = semacquire
    var Semrelease1 = semrelease1
    
    func SemNwait(addr *uint32) uint32 {
    	root := semtable.rootFor(addr)
    	return root.nwait.Load()
    }
    
    const SemTableSize = semTabSize
    
    // SemTable is a wrapper around semTable exported for testing.
    type SemTable struct {
    	semTable
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/apiclient/wait.go

    	return nil
    }
    
    // WaitForPodsWithLabel will lookup pods with the given label and wait until they are all
    // reporting status as running.
    func (w *KubeWaiter) WaitForPodsWithLabel(kvLabel string) error {
    
    	lastKnownPodNumber := -1
    	return wait.PollUntilContextTimeout(context.Background(),
    		constants.KubernetesAPICallRetryInterval, w.timeout,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/wait-on-pipe.go

    	time.Sleep(100 * time.Millisecond)
    
    	// Write to the pipe to unblock it.
    	if _, err := syscall.Write(wfd, []byte{10}); err != nil {
    		log.Fatalf("failed to write to pipe: %v", err)
    	}
    
    	// Wait for the goroutine to unblock and start running.
    	// This is helpful to catch incorrect information written
    	// down for the syscall-blocked goroutine, since it'll start
    	// executing, and that execution information will be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. docs/en/docs/async.md

    ```Python
    burgers = await get_burgers(2)
    ```
    
    The key here is the `await`. It tells Python that it has to wait ⏸ for `get_burgers(2)` to finish doing its thing 🕙 before storing the results in `burgers`. With that, Python will know that it can go and do something else 🔀 ⏯ in the meanwhile (like receiving another request).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 00:24:48 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        @Override
        public void await() throws InterruptedException {
          lock.lock();
          try {
            condition.await();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public boolean await(long time, TimeUnit unit) throws InterruptedException {
          lock.lock();
          try {
            return condition.await(time, unit);
          } finally {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy

                waiting.countDown()
                result = daemonConnection.receive(20, TimeUnit.SECONDS)
                received.countDown()
            }
            waiting.await()
            Thread.sleep(500)
            connection.queueIncoming("incoming")
            received.await()
    
            then:
            result instanceof Received
            result.message == "incoming"
        }
    
        def "receive blocks until connection stopped"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. internal/cachevalue/cache.go

    	// even if updating the value errors out.
    	// Returns the last good value AND the error.
    	ReturnLastGood bool
    
    	// If NoWait is set, Get() will return the last good value,
    	// if TTL has expired but 2x TTL has not yet passed,
    	// but will fetch a new value in the background.
    	NoWait bool
    }
    
    // Cache contains a synchronized value that is considered valid
    // for a specific amount of time.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultConditionalExecutionQueue.java

                        try {
                            workAvailable.await();
                        } catch (InterruptedException e) {
                            throw UncheckedException.throwAsUncheckedException(e);
                        }
                    }
    
                } finally {
                    lock.unlock();
                }
    
                return getReadyExecution();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top