Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for startInstall (0.09 sec)

  1. src/cmd/dist/build.go

    // closed when the dir's package is installed.
    var installed = make(map[string]chan struct{})
    var installedMu sync.Mutex
    
    func install(dir string) {
    	<-startInstall(dir)
    }
    
    func startInstall(dir string) chan struct{} {
    	installedMu.Lock()
    	ch := installed[dir]
    	if ch == nil {
    		ch = make(chan struct{})
    		installed[dir] = ch
    		go runInstall(dir, ch)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top