Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for wakep (0.08 sec)

  1. src/runtime/proc.go

    // Must be called with a P.
    //
    // wakep should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - gvisor.dev/gvisor
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname wakep
    func wakep() {
    	// Be conservative about spinning threads, only start one if none exist
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. src/runtime/mgcpacer.go

    //
    //go:nowritebarrier
    func (c *gcControllerState) enlistWorker() {
    	// If there are idle Ps, wake one so it will run an idle worker.
    	// NOTE: This is suspected of causing deadlocks. See golang.org/issue/19112.
    	//
    	//	if sched.npidle.Load() != 0 && sched.nmspinning.Load() == 0 {
    	//		wakep()
    	//		return
    	//	}
    
    	// There are no idle Ps. If we need more dedicated workers,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

                isInterruptibleRegistered.countDown();
                try {
                  new CountDownLatch(1).await(); // the interrupt will wake us up
                } catch (InterruptedException ie) {
                  // continue
                }
                LockSupport.unpark(Thread.currentThread()); // simulate a spurious wakeup.
                return null;
              }
    
              @Override
              boolean isDone() {
                return false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

                isInterruptibleRegistered.countDown();
                try {
                  new CountDownLatch(1).await(); // the interrupt will wake us up
                } catch (InterruptedException ie) {
                  // continue
                }
                LockSupport.unpark(Thread.currentThread()); // simulate a spurious wakeup.
                return null;
              }
    
              @Override
              boolean isDone() {
                return false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. src/runtime/trace.go

    	}
    	wakeup := s.wakeup
    	if raceenabled {
    		racerelease(unsafe.Pointer(&s.lock))
    	}
    	unlock(&s.lock)
    	<-wakeup
    	s.timer.stop()
    }
    
    // wake awakens any goroutine sleeping on the timer.
    //
    // Safe for concurrent use with all other methods.
    func (s *wakeableSleep) wake() {
    	// Grab the wakeup channel, which may be nil if we're
    	// racing with close.
    	lock(&s.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  6. src/runtime/lock_sema.go

    		throw("notewakeup - double wakeup")
    	default:
    		// Must be the waiting m. Wake it up.
    		semawakeup((*m)(unsafe.Pointer(v)))
    	}
    }
    
    func notesleep(n *note) {
    	gp := getg()
    	if gp != gp.m.g0 {
    		throw("notesleep not on g0")
    	}
    	semacreate(gp.m)
    	if !atomic.Casuintptr(&n.key, 0, uintptr(unsafe.Pointer(gp.m))) {
    		// Must be locked (got wakeup).
    		if n.key != locked {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/sync/mutex.go

    	if old&(mutexLocked|mutexStarving) != 0 {
    		return false
    	}
    
    	// There may be a goroutine waiting for the mutex, but we are
    	// running now and can try to grab the mutex before that
    	// goroutine wakes up.
    	if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
    		return false
    	}
    
    	if race.Enabled {
    		race.Acquire(unsafe.Pointer(m))
    	}
    	return true
    }
    
    func (m *Mutex) lockSlow() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/runtime/lock_futex.go

    // One-time notifications.
    func noteclear(n *note) {
    	n.key = 0
    }
    
    func notewakeup(n *note) {
    	old := atomic.Xchg(key32(&n.key), 1)
    	if old != 0 {
    		print("notewakeup - double wakeup (", old, ")\n")
    		throw("notewakeup - double wakeup")
    	}
    	futexwakeup(key32(&n.key), 1)
    }
    
    func notesleep(n *note) {
    	gp := getg()
    	if gp != gp.m.g0 {
    		throw("notesleep not on g0")
    	}
    	ns := int64(-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/futile-wakeup.go

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/internal/poll/fd_mutex.go

    			panic(overflowMsg)
    		}
    		// Remove all read and write waiters.
    		new &^= mutexRMask | mutexWMask
    		if atomic.CompareAndSwapUint64(&mu.state, old, new) {
    			// Wake all read and write waiters,
    			// they will observe closed flag after wakeup.
    			for old&mutexRMask != 0 {
    				old -= mutexRWait
    				runtime_Semrelease(&mu.rsema)
    			}
    			for old&mutexWMask != 0 {
    				old -= mutexWWait
    				runtime_Semrelease(&mu.wsema)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 20 16:55:30 UTC 2018
    - 6.4K bytes
    - Viewed (0)
Back to top