Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 815 for fslock (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/resource/local/DefaultPathKeyFileStoreTest.groovy

            store.get("a.fslock") == null
        }
    
        def "can overwrite stale files "() {
            given:
            createFile("abc", "fs/a").exists()
            createFile("lock", "fs/a.fslck").exists()
            when:
            store.add("a", { File f -> f.text = "def"} as Action<File>)
            then:
            store.get("a").file.text == "def"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 20 09:57:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. cmd/namespace-lock.go

    	}
    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(lc.ctx)
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. internal/lock/lock.go

    	*LockedFile
    	mutex sync.Mutex
    	refs  int // Holds read lock refs.
    }
    
    // IsClosed - Check if the rlocked file is already closed.
    func (r *RLockedFile) IsClosed() bool {
    	r.mutex.Lock()
    	defer r.mutex.Unlock()
    	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()
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  4. src/internal/zstd/block.go

    // setSeqTable uses the Compression_Mode in mode to set up r.seqTables and
    // r.seqTableBits for kind. We store these in the Reader because one of
    // the modes simply reuses the value from the last block in the frame.
    func (r *Reader) setSeqTable(data block, off int, kind seqCode, mode byte) (int, error) {
    	info := &seqCodeInfo[kind]
    	switch mode {
    	case 0:
    		// Predefined_Mode
    		r.seqTables[kind] = info.predefTable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 17:57:43 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. src/crypto/des/block.go

    // by initialPermutation.
    func permuteInitialBlock(block uint64) uint64 {
    	// block = b7 b6 b5 b4 b3 b2 b1 b0 (8 bytes)
    	b1 := block >> 48
    	b2 := block << 48
    	block ^= b1 ^ b2 ^ b1<<48 ^ b2>>48
    
    	// block = b1 b0 b5 b4 b3 b2 b7 b6
    	b1 = block >> 32 & 0xff00ff
    	b2 = (block & 0xff00ff00)
    	block ^= b1<<32 ^ b2 ^ b1<<8 ^ b2<<24 // exchange b0 b4 with b3 b7
    
    	// block is now b1 b3 b5 b7 b0 b2 b4 b6, the permutation:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. src/crypto/aes/block.go

    //	https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf
    //	https://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf
    
    package aes
    
    import "internal/byteorder"
    
    // Encrypt one block from src into dst, using the expanded key xk.
    func encryptBlockGo(xk []uint32, dst, src []byte) {
    	_ = src[15] // early bounds check
    	s0 := byteorder.BeUint32(src[0:4])
    	s1 := byteorder.BeUint32(src[4:8])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Clock.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    /**
     * A device for obtaining the current time.
     *
     * @see Time#clock()
     */
    @ServiceScope(Scope.Global.class)
    public interface Clock {
    
        /**
         * The current time in millis.
         */
        long getCurrentTime();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 974 bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/Block.java

     * limitations under the License.
     */
    package org.gradle.cache.internal.btree;
    
    public abstract class Block {
        static final int LONG_SIZE = 8;
        static final int INT_SIZE = 4;
        static final int SHORT_SIZE = 2;
    
        private BlockPayload payload;
    
        protected Block(BlockPayload payload) {
            this.payload = payload;
            payload.setBlock(this);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. cmd/lock-rest-client_test.go

    		t.Fatalf("unexpected result. connection was online")
    	}
    
    	// Attempt all calls.
    	_, err = lkClient.RLock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    		t.Fatal("Expected for Rlock to fail")
    	}
    
    	_, err = lkClient.Lock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    		t.Fatal("Expected for Lock to fail")
    	}
    
    	_, err = lkClient.RUnlock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/example.com_retract_rationale_v1.0.0-block.txt

    -- .mod --
    module example.com/retract/rationale
    
    go 1.14
    -- .info --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 21:17:11 UTC 2020
    - 96 bytes
    - Viewed (0)
Back to top