- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for MutexAt (0.2 sec)
-
src/cmd/go/internal/lockedfile/lockedfile_test.go
defer remove() path := filepath.Join(dir, "lock") mu := lockedfile.MutexAt(path) t.Logf("mu := MutexAt(_)") unlock, err := mu.Lock() if err != nil { t.Fatalf("mu.Lock: %v", err) } t.Logf("unlock, _ := mu.Lock()") mu2 := lockedfile.MutexAt(mu.Path) t.Logf("mu2 := MutexAt(mu.Path)") wait := mustBlock(t, "mu2.Lock()", func() { unlock2, err := mu2.Lock() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/mutex.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 17:17:40 UTC 2019 - 2.3K bytes - Viewed (0) -
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) -
src/cmd/go/internal/toolchain/path_windows.go
pathExts.once.Do(initPathExts) name, _, ok := cutExt(de.Name(), pathExts.list) if !ok { return "", false } v := gover.FromToolchain(name) if v == "" { return "", false } return v, true } // cutExt looks for any of the known extensions at the end of file. // If one is found, cutExt returns the file name with the extension trimmed,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 15:15:19 UTC 2023 - 1.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java
} /** * @param extension * @return */ private String getOutputExtension(final String extension) { final String outExt = extensionMap.get(extension); return outExt == null ? "txt" : outExt; } private String getFileName(final String resourceName) { final String name = resourceName.replaceAll("/+$", ""); final int pos = name.lastIndexOf('/');
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 8.2K bytes - Viewed (0)