Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 240 for unpacked (0.13 sec)

  1. src/sync/mutex.go

    import (
    	"internal/race"
    	"sync/atomic"
    	"unsafe"
    )
    
    // Provided by runtime via linkname.
    func throw(string)
    func fatal(string)
    
    // A Mutex is a mutual exclusion lock.
    // The zero value for a Mutex is an unlocked mutex.
    //
    // A Mutex must not be copied after first use.
    //
    // In the terminology of [the Go memory model],
    // the n'th call to [Mutex.Unlock] “synchronizes before” the m'th call to [Mutex.Lock]
    // for any n < m.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy

                    registry.runAsWorkerThread {
                        thread.block()
                        instant.unlocked
                        coordinationService.withStateLock(unlock(resource))
                    }
                }
            }
    
            then:
            instant.worker1Finished > instant.unlocked
        }
    
        def "does not release worker lease when replacing locks and locks can be acquired without blocking"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. internal/lsync/lrwmutex.go

    	}
    }
    
    func (lm *LRWMutex) unlock(isWriteLock bool) (unlocked bool) {
    	lm.mu.Lock()
    	defer lm.mu.Unlock()
    
    	// Try to release lock.
    	if isWriteLock {
    		if lm.isWriteLock && lm.ref == 1 {
    			lm.ref = 0
    			lm.isWriteLock = false
    			unlocked = true
    		}
    	} else {
    		if !lm.isWriteLock {
    			if lm.ref > 0 {
    				lm.ref--
    				unlocked = true
    			}
    		}
    	}
    
    	return unlocked
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/MixedDependencyLockingIntegrationTest.groovy

        def lockfileFixture = new LockfileFixture(testDirectory: testDirectory)
    
        def setup() {
            settingsFile << "rootProject.name = 'mixedDepLock'"
        }
    
        def 'can resolve locked and unlocked configurations'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
            mavenRepo.module('org', 'foo', '1.1').publish()
    
            buildFile << """
    repositories {
        maven {
            name 'repo'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. api/openapi-spec/v3/apis__autoscaling__v1_openapi.json

    \n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 152.9K bytes
    - Viewed (0)
  6. api/openapi-spec/v3/apis__events.k8s.io__v1_openapi.json

    \n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 142.7K bytes
    - Viewed (0)
  7. api/openapi-spec/v3/apis__coordination.k8s.io__v1_openapi.json

    \n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 136.6K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileAccess.java

        /**
         * Runs the given action under an exclusive lock on the target file, without checking its integrity. If the given action fails, the lock is marked as uncleanly unlocked.
         *
         * <p>This method should be used when it is of no consequence if the target was not previously unlocked, e.g. the content is being replaced.
         *
         * <p>Besides not performing integrity checking, this method shares the locking semantics of {@link #updateFile(Runnable)}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/UnitOfWorkParticipant.java

         */
        void afterLockAcquire(FileLock.State currentCacheState);
    
        /**
         * Called when the cache is due to be unlocked. Call after other threads have completed work. This method may access the cache files.
         */
        void finishWork();
    
        /**
         * Called just before the cache is to be unlocked. Called after all work has been completed, and after {@link #finishWork()} has completed.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

        def "updateFile throws integrity exception when not cleanly unlocked file"() {
            given:
            unlockUncleanly()
    
            and:
            def lock = createLock(Exclusive)
    
            when:
            lock.updateFile {}
    
            then:
            thrown FileIntegrityViolationException
        }
    
        def "writeFile does not throw integrity exception when not cleanly unlocked file"() {
            given:
            unlockUncleanly()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top