Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nothingPending (0.13 sec)

  1. pkg/util/goroutinemap/goroutinemap.go

    	grm.lock.Lock()
    	defer grm.lock.Unlock()
    
    	for {
    		if len(grm.operations) == 0 || grm.nothingPending() {
    			break
    		} else {
    			grm.cond.Wait()
    		}
    	}
    }
    
    // Check if any operation is pending. Already assumes caller has the
    // necessary locks
    func (grm *goRoutineMap) nothingPending() bool {
    	nothingIsPending := true
    	for _, operation := range grm.operations {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 6.8K bytes
    - Viewed (0)
Back to top