Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,210 for cLower (0.08 sec)

  1. internal/lock/lock.go

    	return r.refs == 0
    }
    
    // IncLockRef - is used by called to indicate lock refs.
    func (r *RLockedFile) IncLockRef() {
    	r.mutex.Lock()
    	r.refs++
    	r.mutex.Unlock()
    }
    
    // Close - this closer implements a special closer
    // closes the underlying fd only when the refs
    // reach zero.
    func (r *RLockedFile) Close() (err error) {
    	r.mutex.Lock()
    	defer r.mutex.Unlock()
    
    	if r.refs == 0 {
    		return os.ErrInvalid
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. src/debug/plan9obj/file.go

    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    	ff.closer = f
    	return ff, nil
    }
    
    // Close closes the [File].
    // If the [File] was created using [NewFile] directly instead of [Open],
    // Close has no effect.
    func (f *File) Close() error {
    	var err error
    	if f.closer != nil {
    		err = f.closer.Close()
    		f.closer = nil
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_flags.txt

    go test ./x -args -help
    stdout 'usage_message'
    
    # -covermode, -coverpkg, and -coverprofile should imply -cover
    go test -covermode=set ./x
    stdout '\s+coverage:\s+'
    
    go test -coverpkg=encoding/binary ./x
    stdout '\s+coverage:\s+'
    
    go test -coverprofile=cover.out ./x
    stdout '\s+coverage:\s+'
    exists ./cover.out
    rm ./cover.out
    
    # -*profile and -trace flags should force output to the current working directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. pkg/test/framework/scope.go

    )
    
    // scope hold resources in a particular scope.
    type scope struct {
    	// friendly name for the scope for debugging purposes.
    	id string
    
    	parent *scope
    
    	resources []resource.Resource
    
    	closers []io.Closer
    
    	children []*scope
    
    	closeChan chan struct{}
    
    	topLevel bool
    
    	skipDump bool
    
    	// Mutex to lock changes to resources, children, and closers that can be done concurrently
    	mu sync.Mutex
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java

    /**
     *
     */
    @Named
    @Singleton
    @Deprecated
    public class DefaultGraphConflictResolutionPolicy implements GraphConflictResolutionPolicy {
        /**
         * artifact, closer to the entry point, is selected
         */
        @Configuration(name = "closer-first", value = "true")
        private boolean closerFirst = true;
    
        /**
         * newer artifact is selected
         */
        @Configuration(name = "newer-first", value = "true")
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. cmd/bitrot_test.go

    		t.Fatal(err)
    	}
    	_, err = writer.Write([]byte("aaaaaaaaaa"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = writer.Write([]byte("aaaaa"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if bw, ok := writer.(io.Closer); ok {
    		bw.Close()
    	}
    
    	reader := newBitrotReader(disk, nil, volume, filePath, 35, bitrotAlgo, bitrotWriterSum(writer), 10)
    	b := make([]byte, 10)
    	if _, err = reader.ReadAt(b, 0); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_cgo_extra_file.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code. This test case includes an
    # extra empty non-cgo file in the package being checked.
    
    go test -short -cover cgocover4
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover4
    
    go 1.16
    -- notcgo.go --
    package p
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 560 bytes
    - Viewed (0)
  9. src/net/http/fcgi/fcgi.go

    }
    
    // bufWriter encapsulates bufio.Writer but also closes the underlying stream when
    // Closed.
    type bufWriter struct {
    	closer io.Closer
    	*bufio.Writer
    }
    
    func (w *bufWriter) Close() error {
    	if err := w.Writer.Flush(); err != nil {
    		w.closer.Close()
    		return err
    	}
    	return w.closer.Close()
    }
    
    func newWriter(c *conn, recType recType, reqId uint16) *bufWriter {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/dom.go

    // which maps block ID to the immediate dominator of that block.
    // Unreachable blocks map to nil. The entry block maps to nil.
    func dominatorsSimple(f *Func) []*Block {
    	// A simple algorithm for now
    	// Cooper, Harvey, Kennedy
    	idom := make([]*Block, f.NumBlocks())
    
    	// Compute postorder walk
    	post := f.postorder()
    
    	// Make map from block id to order index (for intersect call)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 7.4K bytes
    - Viewed (0)
Back to top