Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 111 for wakep (0.04 sec)

  1. src/runtime/lock_wasip1.go

    	}
    	l.key = mutex_unlocked
    }
    
    // One-time notifications.
    func noteclear(n *note) {
    	n.key = 0
    }
    
    func notewakeup(n *note) {
    	if n.key != 0 {
    		print("notewakeup - double wakeup (", n.key, ")\n")
    		throw("notewakeup - double wakeup")
    	}
    	n.key = 1
    }
    
    func notesleep(n *note) {
    	throw("notesleep not supported by wasi")
    }
    
    func notetsleep(n *note, ns int64) bool {
    	throw("notetsleep not supported by wasi")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/runtime/sigqueue_note.go

    // license that can be found in the LICENSE file.
    
    // The current implementation of notes on Darwin is not async-signal-safe,
    // so on Darwin the sigqueue code uses different functions to wake up the
    // signal_recv thread. This file holds the non-Darwin implementations of
    // those functions. These functions will never be called.
    
    //go:build !darwin && !plan9
    
    package runtime
    
    func sigNoteSetup(*note) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 648 bytes
    - Viewed (0)
  3. src/sync/cond.go

    //	... make use of condition ...
    //	c.L.Unlock()
    func (c *Cond) Wait() {
    	c.checker.check()
    	t := runtime_notifyListAdd(&c.notify)
    	c.L.Unlock()
    	runtime_notifyListWait(&c.notify, t)
    	c.L.Lock()
    }
    
    // Signal wakes one goroutine waiting on c, if there is any.
    //
    // It is allowed but not required for the caller to hold c.L
    // during the call.
    //
    // Signal() does not affect goroutine scheduling priority; if other goroutines
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultBuildControllers.java

            }
            return result;
        }
    
        private void awaitCompletion(CountDownLatch complete) {
            while (true) {
                // Wake for the work in all builds to complete. Periodically wake up and check the executor health
    
                AtomicBoolean done = new AtomicBoolean();
                // Ensure that this thread does not hold locks while waiting and so prevent this work from completing
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 23 10:37:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/runtime/os_linux.go

    // Linux futex.
    //
    //	futexsleep(uint32 *addr, uint32 val)
    //	futexwakeup(uint32 *addr)
    //
    // Futexsleep atomically checks if *addr == val and if so, sleeps on addr.
    // Futexwakeup wakes up threads sleeping on addr.
    // Futexsleep is allowed to wake up spuriously.
    
    const (
    	_FUTEX_PRIVATE_FLAG = 128
    	_FUTEX_WAIT_PRIVATE = 0 | _FUTEX_PRIVATE_FLAG
    	_FUTEX_WAKE_PRIVATE = 1 | _FUTEX_PRIVATE_FLAG
    )
    
    // Atomically,
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. src/runtime/time.go

    	ts.lock()
    	ts.cleanHead()
    	t.lock()
    	t.trace("maybeAdd")
    	when := int64(0)
    	wake := false
    	if t.needsAdd() {
    		t.state |= timerHeaped
    		when = t.when
    		wakeTime := ts.wakeTime()
    		wake = wakeTime == 0 || when < wakeTime
    		ts.addHeap(t)
    	}
    	t.unlock()
    	ts.unlock()
    	releasem(mp)
    	if wake {
    		wakeNetPoller(when)
    	}
    }
    
    // reset resets the time when a timer should fire.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  7. test/chan/select6.go

    // if there are multiple waiters on those channels and the
    // select is the last in the queue. If further waits are made
    // on the channel without draining it first then those waiters
    // will never wake up. In the code below c1 is such a channel.
    
    package main
    
    func main() {
    	c1 := make(chan bool)
    	c2 := make(chan bool)
    	c3 := make(chan bool)
    	go func() { <-c1 }()
    	go func() {
    		select {
    		case <-c1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 783 bytes
    - Viewed (0)
  8. src/context/example_test.go

    			// If multiple goroutines are waiting on cond simultaneously,
    			// we need to make sure we wake up exactly this one.
    			// That means that we need to Broadcast to all of the goroutines,
    			// which will wake them all up.
    			//
    			// If there are N concurrent calls to waitOnCond, each of the goroutines
    			// will spuriously wake up O(N) other goroutines that aren't ready yet,
    			// so this will cause the overall CPU cost to be O(N²).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/OverflowAvoidingLockSupport.java

      static void parkNanos(@CheckForNull Object blocker, long nanos) {
        // Even in the extremely unlikely event that a thread unblocks itself early after only 68 years,
        // this is indistinguishable from a spurious wakeup, which LockSupport allows.
        LockSupport.parkNanos(blocker, min(nanos, MAX_NANOSECONDS_THRESHOLD));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/OverflowAvoidingLockSupport.java

      static void parkNanos(@CheckForNull Object blocker, long nanos) {
        // Even in the extremely unlikely event that a thread unblocks itself early after only 68 years,
        // this is indistinguishable from a spurious wakeup, which LockSupport allows.
        LockSupport.parkNanos(blocker, min(nanos, MAX_NANOSECONDS_THRESHOLD));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top