Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for writeBlock (0.24 sec)

  1. src/internal/poll/splice_linux.go

    // all of it to the socket. This behavior is similar to the Write
    // step of an io.Copy in userspace.
    func splicePump(sock *FD, pipefd int, inPipe int) (int, error) {
    	if err := sock.writeLock(); err != nil {
    		return 0, err
    	}
    	defer sock.writeUnlock()
    	if err := sock.pd.prepareWrite(sock.isFile); err != nil {
    		return 0, err
    	}
    	written := 0
    	for inPipe > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/DependencyLockingGraphVisitorTest.groovy

            }
        }
    
        def 'invokes locking provider on writeLocks with visited modules'() {
            given:
            def identifier = newId(mid, '1.1')
            startWithoutLockState()
            addVisitedNode(identifier)
    
            when:
            visitor.writeLocks()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/lockedfile/internal/filelock/filelock_other.go

    // license that can be found in the LICENSE file.
    
    //go:build !unix && !windows
    
    package filelock
    
    import (
    	"errors"
    	"io/fs"
    )
    
    type lockType int8
    
    const (
    	readLock = iota + 1
    	writeLock
    )
    
    func lock(f File, lt lockType) error {
    	return &fs.PathError{
    		Op:   lt.String(),
    		Path: f.Name(),
    		Err:  errors.ErrUnsupported,
    	}
    }
    
    func unlock(f File) error {
    	return &fs.PathError{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 563 bytes
    - Viewed (0)
  4. src/cmd/go/internal/lockedfile/internal/filelock/filelock.go

    // unspecified.
    //
    // Closing the file may or may not release the lock promptly. Callers should
    // ensure that Unlock is always called when Lock succeeds.
    func Lock(f File) error {
    	return lock(f, writeLock)
    }
    
    // RLock places an advisory read lock on the file, blocking until it can be locked.
    //
    // If RLock returns nil, no other process will be able to place a write lock on
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/lockedfile/internal/filelock/filelock_unix.go

    //go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
    
    package filelock
    
    import (
    	"io/fs"
    	"syscall"
    )
    
    type lockType int16
    
    const (
    	readLock  lockType = syscall.LOCK_SH
    	writeLock lockType = syscall.LOCK_EX
    )
    
    func lock(f File, lt lockType) (err error) {
    	for {
    		err = syscall.Flock(int(f.Fd()), int(lt))
    		if err != syscall.EINTR {
    			break
    		}
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 723 bytes
    - Viewed (0)
  6. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

            persistentCache.withFileLock(() -> {
                // Additional locking necessary because of https://github.com/gradle/gradle/issues/3537
                lock.writeLock().lock();
                try {
                    storeInsideLock(key, file);
                } finally {
                    lock.writeLock().unlock();
                }
            });
        }
    
        private void storeInsideLock(HashCode key, File sourceFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/ApplicationServiceRegistration.kt

        ) {
            for (registrar in registrars) {
                if (lock.readLock().withLock { application.isRegistrarRegistered(registrar) }) {
                    continue
                }
    
                lock.writeLock().withLock {
                    if (application.isRegistrarRegistered(registrar)) return@withLock
                    registrar.register()
                    application.serviceRegistered[registrar::class] = true
                }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 16 11:53:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/lockedfile/internal/filelock/filelock_windows.go

    //go:build windows
    
    package filelock
    
    import (
    	"internal/syscall/windows"
    	"io/fs"
    	"syscall"
    )
    
    type lockType uint32
    
    const (
    	readLock  lockType = 0
    	writeLock lockType = windows.LOCKFILE_EXCLUSIVE_LOCK
    )
    
    const (
    	reserved = 0
    	allBytes = ^uint32(0)
    )
    
    func lock(f File, lt lockType) error {
    	// Per https://golang.org/issue/19098, “Programs currently expect the Fd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/promotion/BasePromotionBuildType.kt

                // we only allow 1 promotion job running at the same time to avoid website xml conflicts
                feature {
                    type = "JetBrains.SharedResources"
                    param("locks-param", "WebsiteReleasesXml writeLock")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 03:34:53 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_activity_listener.cc

    }
    void RegisterXlaActivityListener(
        std::unique_ptr<XlaActivityListener> listener) {
      XlaActivityListenerList* listener_list = GetXlaActivityListenerList();
      absl::WriterMutexLock writer_lock(&listener_list->mutex);
    
      listener_list->listeners.push_back(std::move(listener));
    }
    
    void XlaActivityListener::Flush() {}
    
    XlaActivityListener::~XlaActivityListener() {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top