Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 85 for wakep (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	// never hit the w.cond.Wait().
    	// As a result - we can optimize the code by not firing the wakeup
    	// function (and avoid starting a gorotuine), especially given that
    	// resourceVersion=0 is the most common case.
    	if resourceVersion > 0 {
    		go func() {
    			// Wake us up when the time limit has expired.  The docs
    			// promise that time.After (well, NewTimer, which it calls)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. src/runtime/mgcscavenge_test.go

    	availableWork.Store(totalWork)
    	s.Wake()
    	if !s.BlockUntilParked(2e9 /* 2 seconds */) {
    		t.Fatal("timed out waiting for scavenger to run to completion")
    	}
    	// Run a check.
    	verifyScavengerState(t, totalWork)
    
    	// Now let's do it again and see what happens when we have no work to do.
    	// It should've gone right back to sleep.
    	s.Wake()
    	if !s.BlockUntilParked(2e9 /* 2 seconds */) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. security/pkg/credentialfetcher/plugin/gce.go

    	}
    	if rotateToken {
    		go p.startTokenRotationJob()
    	}
    	return p
    }
    
    func (p *GCEPlugin) Stop() {
    	close(p.closing)
    }
    
    func (p *GCEPlugin) startTokenRotationJob() {
    	// Wake up once in a while and refresh GCE VM credential.
    	p.rotationTicker = time.NewTicker(rotationInterval)
    	for {
    		select {
    		case <-p.rotationTicker.C:
    			p.rotate()
    		case <-p.closing:
    			if p.rotationTicker != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/runtime/chan_test.go

    		<-c
    	}()
    	time.Sleep(time.Millisecond) // make sure goroutine B gets queued on c before continuing
    
    	d <- 7 // wake up A, it dequeues itself from c.  This operation used to corrupt c.recvq.
    	<-e    // A tells us it's done
    	c <- 8 // wake up B.  This operation used to fail because c.recvq was corrupted (it tries to wake up an already running G instead of B)
    }
    
    func TestSelectStackAdjust(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    }
    
    // Released returns how many bytes the scavenger released.
    func (s *Scavenger) Released() uintptr {
    	return s.released.Load()
    }
    
    // Wake wakes up a parked scavenger to keep running.
    func (s *Scavenger) Wake() {
    	s.scavenger.wake()
    }
    
    // Stop cleans up the scavenger's resources. The scavenger
    // must be parked for this to work.
    func (s *Scavenger) Stop() {
    	lock(&s.scavenger.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        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();
        waiter2.awaitWaiting(); // should still be blocked
    
        LockSupport.unpark(waiter2); // spurious wakeup
        waiter2.awaitWaiting(); // should eventually re-park
    
        future.set(null);
        waiter2.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. src/runtime/rwmutex.go

    	r := rw.readerCount.Add(-rwmutexMaxReaders) + rwmutexMaxReaders
    	// Wait for any active readers to complete.
    	lock(&rw.rLock)
    	if r != 0 && rw.readerWait.Add(r) != 0 {
    		// Wait for reader to wake us up.
    		systemstack(func() {
    			rw.writer.set(m)
    			unlock(&rw.rLock)
    			notesleep(&m.park)
    			noteclear(&m.park)
    		})
    	} else {
    		unlock(&rw.rLock)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        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();
        waiter2.awaitWaiting(); // should still be blocked
    
        LockSupport.unpark(waiter2); // spurious wakeup
        waiter2.awaitWaiting(); // should eventually re-park
    
        future.set(null);
        waiter2.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)
  9. src/runtime/HACKING.md

    For one-shot notifications, use `note`, which provides `notesleep` and
    `notewakeup`. Unlike traditional UNIX `sleep`/`wakeup`, `note`s are
    race-free, so `notesleep` returns immediately if the `notewakeup` has
    already happened. A `note` can be reset after use with `noteclear`,
    which must not race with a sleep or wakeup. Like `mutex`, blocking on
    a `note` blocks the M. However, there are different ways to sleep on a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/runtime/lock_js.go

    	notesWithTimeout = make(map[*note]noteWithTimeout)
    )
    
    func noteclear(n *note) {
    	n.key = note_cleared
    }
    
    func notewakeup(n *note) {
    	// gp := getg()
    	if n.key == note_woken {
    		throw("notewakeup - double wakeup")
    	}
    	cleared := n.key == note_cleared
    	n.key = note_woken
    	if cleared {
    		goready(notes[n], 1)
    	}
    }
    
    func notesleep(n *note) {
    	throw("notesleep not supported by js")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top