Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for wakep (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/export_debug_test.go

    		h.debugCallReturn(ctxt)
    	case 2:
    		// Function panicked. Copy panic out.
    		h.debugCallPanicOut(ctxt)
    	case 8:
    		// Call isn't safe. Get the reason.
    		h.debugCallUnsafe(ctxt)
    		// Don't wake h.done. We need to transition to status 16 first.
    	case 16:
    		h.restoreSigContext(ctxt)
    		// Done
    		notewakeup(&h.done)
    	default:
    		h.err = plainError("unexpected debugCallV2 status")
    		notewakeup(&h.done)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/runtime/profbuf.go

    	}
    	b.eof.Store(1)
    	b.wakeupExtra()
    }
    
    // wakeupExtra must be called after setting one of the "extra"
    // atomic fields b.overflow or b.eof.
    // It records the change in b.w and wakes up the reader if needed.
    func (b *profBuf) wakeupExtra() {
    	for {
    		old := b.w.load()
    		new := old | profWriteExtra
    		if !b.w.cas(old, new) {
    			continue
    		}
    		if old&profReaderSleeping != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. fess-crawler-lasta/src/main/resources/crawler/extractor.xml

    				"application/vnd.japannet-jpnstore-wakeup",
    				"application/vnd.japannet-payment-wakeup",
    				"application/vnd.japannet-registration",
    				"application/vnd.japannet-registration-wakeup",
    				"application/vnd.japannet-setstore-wakeup",
    				"application/vnd.japannet-verification",
    				"application/vnd.japannet-verification-wakeup",
    				"application/vnd.jcp.javame.midlet-rms",
    				"application/vnd.jisp",
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sat Aug 01 21:40:30 UTC 2020
    - 49K bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge.go

    func (s *scavengerState) ready() {
    	s.sysmonWake.Store(1)
    }
    
    // wake immediately unparks the scavenger if necessary.
    //
    // Safe to run without a P.
    func (s *scavengerState) wake() {
    	lock(&s.lock)
    	if s.parked {
    		// Unset sysmonWake, since the scavenger is now being awoken.
    		s.sysmonWake.Store(0)
    
    		// s.parked is unset to prevent a double wake-up.
    		s.parked = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  9. src/runtime/proc_test.go

    	hogChan, lightChan := make(chan bool), make(chan bool)
    	hogCount, lightCount := 0, 0
    
    	run := func(limit int, counter *int, wake chan bool) {
    		for {
    			select {
    			case <-done:
    				return
    
    			case <-wake:
    				for i := 0; i < limit; i++ {
    					*counter++
    				}
    				wake <- true
    			}
    		}
    	}
    
    	// Start two co-scheduled hog goroutines.
    	for i := 0; i < 2; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

              //                ||----w |
              //                ||     ||
              // We need to clear the interrupted bit prior to calling park and maintain it in case we
              // wake up spuriously.
              restoreInterruptedBit = Thread.interrupted() || restoreInterruptedBit;
              LockSupport.park(blocker);
            }
          } else {
            Thread.yield();
          }
          state = get();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top