Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for uniqueMapCleanup (0.21 sec)

  1. src/runtime/mgc.go

    func unique_runtime_registerUniqueMapCleanup(f func()) {
    	// Start the goroutine in the runtime so it's counted as a system goroutine.
    	uniqueMapCleanup = make(chan struct{}, 1)
    	go func(cleanup func()) {
    		for {
    			<-uniqueMapCleanup
    			cleanup()
    		}
    	}(f)
    }
    
    func clearpools() {
    	// clear sync.Pools
    	if poolcleanup != nil {
    		poolcleanup()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top