Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for isLocked (0.14 sec)

  1. src/cmd/go/internal/lockedfile/lockedfile_plan9.go

    	"exclusive use file already open",
    }
    
    // Even though plan9 doesn't support the Lock/RLock/Unlock functions to
    // manipulate already-open files, IsLocked is still meaningful: os.OpenFile
    // itself may return errors that indicate that a file with the ModeExclusive bit
    // set is already open.
    func isLocked(err error) bool {
    	s := err.Error()
    
    	for _, frag := range lockedErrStrings {
    		if strings.Contains(s, frag) {
    			return true
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/ClassLoaderHierarchy.kt

                        "label" to labelFor(it),
                        "localClassLoader" to idOf(it.localClassLoader),
                        "exportClassLoader" to idOf(it.exportClassLoader),
                        "isLocked" to it.isLocked
                    )
                }
            )
        )
    }
    
    
    private
    fun hierarchyOf(initialScope: ClassLoaderScope): List<ClassLoaderScope> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. internal/dsync/drwmutex.go

    // Granted - represents a structure of a granted lock.
    type Granted struct {
    	index   int
    	lockUID string // Locked if set with UID string, unlocked if empty
    }
    
    func (g *Granted) isLocked() bool {
    	return isLocked(g.lockUID)
    }
    
    func isLocked(uid string) bool {
    	return len(uid) > 0
    }
    
    // NewDRWMutex - initializes a new dsync RW mutex.
    func NewDRWMutex(clnt *Dsync, names ...string) *DRWMutex {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/initialization/RootClassLoaderScope.java

        }
    
        @Override
        public ClassLoaderScope lock() {
            return this;
        }
    
        @Override
        public boolean isLocked() {
            return true;
        }
    
        @Override
        public void onReuse() {
            // Nothing to do
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLock.java

            this.allProjectsLock = allProjectsLock;
        }
    
        @Override
        protected boolean canAcquire() {
            // Either the "all projects" lock is not held, or it is held by this thread
            return !allProjectsLock.isLocked() || allProjectsLock.isLockedByCurrentThread();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/AbstractTrackedResourceLockTest.groovy

            then:
            thrown(IllegalStateException)
    
            when:
            lock.isLockedByCurrentThread()
    
            then:
            thrown(IllegalStateException)
    
            when:
            lock.isLocked()
    
            then:
            thrown(IllegalStateException)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/provider/ClassLoaderHierarchyTest.kt

            val classPath: List<String>
        )
    
        data class ScopeNode(
            val label: String,
            val localClassLoader: String,
            val exportClassLoader: String,
            val isLocked: Boolean
        )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLock.java

    public interface ResourceLock extends Describable {
        /**
         * Returns true if this resource is locked by any thread.
         *
         * @return true if any thread holds the lock for this resource
         */
        boolean isLocked();
    
        /**
         * Returns true if the current thread holds a lock on this resource.  Returns false otherwise.
         *
         * @return true if the task for this operation holds the lock for this resource.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractTrackedResourceLock.java

                    owner.lockReleased(this);
                } finally {
                    coordinationService.getCurrent().registerUnlocked(this);
                }
            }
        }
    
        @Override
        public boolean isLocked() {
            failIfNotInResourceLockStateChange();
            return doIsLocked();
        }
    
        @Override
        public boolean isLockedByCurrentThread() {
            failIfNotInResourceLockStateChange();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/initialization/ImmutableClassLoaderScope.java

        }
    
        @Override
        public ClassLoaderScope lock() {
            return this;
        }
    
        @Override
        public boolean isLocked() {
            return true;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top