Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setDrainInputBufferLocked (0.29 sec)

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

    			break TestCase
    		default:
    		}
    		w.setDrainInputBufferLocked(false)
    		w.stopLocked()
    	}
    }
    
    func TestCacheWatcherStoppedInAnotherGoroutine(t *testing.T) {
    	var w *cacheWatcher
    	done := make(chan struct{})
    	filter := func(string, labels.Set, fields.Set) bool { return true }
    	forget := func(drainWatcher bool) {
    		w.setDrainInputBufferLocked(drainWatcher)
    		w.stopLocked()
    		done <- struct{}{}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    	}
    	c.state = state
    	c.bookmarkAfterResourceVersion = bookmarkAfterResourceVersion
    }
    
    // setDrainInputBufferLocked if set to true indicates that we should delay closing this watcher
    // until we send all events residing in the input buffer.
    func (c *cacheWatcher) setDrainInputBufferLocked(drain bool) {
    	c.drainInputBuffer = drain
    }
    
    // isDoneChannelClosed checks if c.done channel is closed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    			delete(i.allWatchers, scope)
    		}
    	}
    }
    
    func (i *indexedWatchers) terminateAll(groupResource schema.GroupResource, done func(*cacheWatcher)) {
    	// note that we don't have to call setDrainInputBufferLocked method on the watchers
    	// because we take advantage of the default value - stop immediately
    	// also watchers that have had already its draining strategy set
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top