Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 733 for clocks (0.18 sec)

  1. src/runtime/lock_sema.go

    	return atomic.Loaduintptr(&l.key) > locked
    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	gp := getg()
    	if gp.m.locks < 0 {
    		throw("runtime·lock: lock count")
    	}
    	gp.m.locks++
    
    	// Speculative grab for lock.
    	if atomic.Casuintptr(&l.key, 0, locked) {
    		return
    	}
    	semacreate(gp.m)
    
    	timer := &lockTimer{lock: l}
    	timer.begin()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * method equivalent to {@link
     * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
     * except that the method parameter must accept whatever condition-like object is passed into {@code
     * callAndAssertWaits} by the test.
     *
     * @param <L> the type of the lock-like object to be used
     * @author Justin T. Sampson
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. pkg/controller/ttlafterfinished/ttlafterfinished_controller.go

    	jListerSynced cache.InformerSynced
    
    	// Jobs that the controller will check its TTL and attempt to delete when the TTL expires.
    	queue workqueue.TypedRateLimitingInterface[string]
    
    	// The clock for tracking time
    	clock clock.Clock
    }
    
    // New creates an instance of Controller
    func New(ctx context.Context, jobInformer batchinformers.JobInformer, client clientset.Interface) *Controller {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 23:59:28 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

                thread.block()
                worker.runLater(action2)
            }
    
            then:
            instant.action2Completed < instant.action1Completed
        }
    
        def "can use instants to test that a method blocks until action is complete"() {
            Worker worker = new Worker(executor)
    
            given:
            def action = {
                thread.block()
                instant.actionCompleted
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    		w.setBookmarkAfterResourceVersion(0)
    		return w
    	}
    
    	clock := testingclock.NewFakeClock(time.Now())
    	watchers := newTimeBucketWatchers(clock, defaultBookmarkFrequency)
    	now := clock.Now()
    	watchers.addWatcherThreadUnsafe(newWatcher(now.Add(10 * time.Second)))
    	watchers.addWatcherThreadUnsafe(newWatcher(now.Add(20 * time.Second)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/Synchronizer.java

    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    import java.util.function.Supplier;
    
    // TODO Replace the use of this with synchronized caches from Guava
    @NonNullApi
    public class Synchronizer {
    
        private final Lock lock = new ReentrantLock();
    
        public <T> T synchronize(Supplier<T> factory) {
            lock.lock();
            try {
                return factory.get();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/build/relnote/dump.go

    // document to standard output.
    // It is intended for debugging.
    func DumpMarkdown(d *md.Document) {
    	dumpBlocks(d.Blocks, 0)
    }
    
    func dumpBlocks(bs []md.Block, depth int) {
    	for _, b := range bs {
    		dumpBlock(b, depth)
    	}
    }
    
    func dumpBlock(b md.Block, depth int) {
    	typeName := strings.TrimPrefix(fmt.Sprintf("%T", b), "*markdown.")
    	dprintf(depth, "%s\n", typeName)
    	switch b := b.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/apiclient/wait.go

    			return true, nil
    		})
    
    	if err != nil {
    		err = lastErr
    	}
    	return componentPodHash, err
    }
    
    // WaitForStaticPodHashChange blocks until it timeouts or notices that the Mirror Pod (for the Static Pod, respectively) has changed
    // This implicitly means this function blocks until the kubelet has restarted the Static Pod in question
    func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHash string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. JavadocStyleGuide.md

     */
    ```
    
    ## 1.3 Code blocks and snippets
    
    `<pre>` is the default HTML tag for preformatted text.
    All code blocks and multi-line snippets should be wrapped in `<pre>{@code ...... }</pre>` at minimum.
    
    Code blocks can be optionally formatted and highlighted using [`highlight.js`](https://highlightjs.org/) with the `<code>` tag.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 15:43:07 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestWorker.java

                testServices.get(ActorFactory.class),
                testServices.get(Clock.class)
            );
            IdGenerator<Object> idGenerator = Cast.uncheckedNonnullCast(testServices.get(IdGenerator.class));
    
            targetProcessor = new WorkerTestClassProcessor(targetProcessor, idGenerator.generateId(),
                    workerProcessContext.getDisplayName(), testServices.get(Clock.class));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top