Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for writer_lock (0.21 sec)

  1. src/compress/flate/deflate.go

    		}
    	}
    	n := copy(d.window[d.windowEnd:], b)
    	d.windowEnd += n
    	return n
    }
    
    func (d *compressor) writeBlock(tokens []token, index int) error {
    	if index > 0 {
    		var window []byte
    		if d.blockStart <= index {
    			window = d.window[d.blockStart:index]
    		}
    		d.blockStart = index
    		d.w.writeBlock(tokens, false, window)
    		return d.w.err
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          this.writeLock = new CycleDetectingReentrantWriteLock(this);
          this.lockGraphNode = Preconditions.checkNotNull(lockGraphNode);
        }
    
        ///// Overridden ReentrantReadWriteLock methods. /////
    
        @Override
        public ReadLock readLock() {
          return readLock;
        }
    
        @Override
        public WriteLock writeLock() {
          return writeLock;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  3. src/compress/flate/huffman_bit_writer_test.go

    	},
    }
    
    // TestWriteBlock tests if the writeBlock encoding has changed.
    // To update the reference files use the "-update" flag on the test.
    func TestWriteBlock(t *testing.T) {
    	for _, test := range writeBlockTests {
    		testBlock(t, test, "wb")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 40.3K bytes
    - Viewed (0)
  4. src/net/fd_windows.go

    	}
    	return err
    }
    
    // Always returns nil for connected peer address result.
    func (fd *netFD) connect(ctx context.Context, la, ra syscall.Sockaddr) (syscall.Sockaddr, error) {
    	// Do not need to call fd.writeLock here,
    	// because fd is not yet accessible to user,
    	// so no concurrent operations are possible.
    	if err := fd.init(); err != nil {
    		return nil, err
    	}
    
    	if ctx.Done() != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/net/fd_unix.go

    		rs = fd.raddr.String()
    	}
    	return fd.net + ":" + ls + "->" + rs
    }
    
    func (fd *netFD) connect(ctx context.Context, la, ra syscall.Sockaddr) (rsa syscall.Sockaddr, ret error) {
    	// Do not need to call fd.writeLock here,
    	// because fd is not yet accessible to user,
    	// so no concurrent operations are possible.
    	switch err := connectFunc(fd.pfd.Sysfd, ra); err {
    	case syscall.EINPROGRESS, syscall.EALREADY, syscall.EINTR:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 20:19:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

                lock.readLock().lock();
                Optional<Method> cached = store.get(key);
                if (cached == null) {
                    cacheMiss++;
                    lock.readLock().unlock();
                    lock.writeLock().lock();
                    try {
                        cached = store.get(key);
                        if (cached == null) {
                            cached = lookup(owner, name, parameterTypes);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    package filelock
    
    import (
    	"errors"
    	"io"
    	"io/fs"
    	"math/rand"
    	"sync"
    	"syscall"
    	"time"
    )
    
    type lockType int16
    
    const (
    	readLock  lockType = syscall.F_RDLCK
    	writeLock lockType = syscall.F_WRLCK
    )
    
    type inode = uint64 // type of syscall.Stat_t.Ino
    
    type inodeLock struct {
    	owner File
    	queue []<-chan File
    }
    
    var (
    	mu     sync.Mutex
    	inodes = map[File]inode{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/compress/flate/huffman_bit_writer.go

    		value = 3
    	}
    	w.writeBits(value, 3)
    }
    
    // writeBlock will write a block of tokens with the smallest encoding.
    // The original input can be supplied, and if the huffman encoded data
    // is larger than the original bytes, the data will be written as a
    // stored block.
    // If the input is nil, the tokens will always be Huffman encoded.
    func (w *huffmanBitWriter) writeBlock(tokens []token, eof bool, input []byte) {
    	if w.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:59:14 UTC 2022
    - 18.4K bytes
    - Viewed (0)
  9. src/runtime/pprof/pprof.go

    	return n
    }
    
    // countMutex returns the number of records in the mutex profile.
    func countMutex() int {
    	n, _ := runtime.MutexProfile(nil)
    	return n
    }
    
    // writeBlock writes the current blocking profile to w.
    func writeBlock(w io.Writer, debug int) error {
    	return writeProfileInternal(w, debug, "contention", pprof_blockProfileInternal)
    }
    
    // writeMutex writes the current mutex profile to w.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Striped.java

        }
    
        @Override
        public Lock readLock() {
          return new WeakSafeLock(delegate.readLock(), this);
        }
    
        @Override
        public Lock writeLock() {
          return new WeakSafeLock(delegate.writeLock(), this);
        }
      }
    
      /** Lock object that ensures a strong reference is retained to a specified object. */
      private static final class WeakSafeLock extends ForwardingLock {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
Back to top