- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MutexAt (0.18 sec)
-
src/cmd/go/internal/modfetch/cache.go
path, err := CachePath(ctx, mod, "lock") if err != nil { return nil, err } if err := os.MkdirAll(filepath.Dir(path), 0777); err != nil { return nil, err } return lockedfile.MutexAt(path).Lock() } // SideLock locks a file within the module cache that previously guarded // edits to files outside the cache, such as go.sum and go.mod files in the // user's working directory.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/codehost.go
return "", "", err } lockfile = dir + ".lock" if buildX { fmt.Fprintf(xLog, "# lock %s\n", lockfile) } unlock, err := lockedfile.MutexAt(lockfile).Lock() if err != nil { return "", "", fmt.Errorf("codehost.WorkDir: can't find or create lock file: %v", err) } defer unlock() data, err := os.ReadFile(dir + ".info")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 12.8K bytes - Viewed (0)