Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 192 for blocked (0.21 sec)

  1. 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)
  2. src/crypto/des/block.go

    	b1 = block & 0x0f0f00000f0f0000
    	b2 = block & 0x0000f0f00000f0f0
    	block ^= b1 ^ b2 ^ b1>>12 ^ b2<<12
    
    	b1 = block >> 32 & 0xff00ff
    	b2 = (block & 0xff00ff00)
    	block ^= b1<<32 ^ b2 ^ b1<<8 ^ b2<<24
    
    	b1 = block >> 48
    	b2 = block << 48
    	block ^= b1 ^ b2 ^ b1<<48 ^ b2>>48
    	return block
    }
    
    // creates 16 28-bit blocks rotated according
    // to the rotation schedule.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. 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)
  4. internal/lsync/lrwmutex.go

    func (lm *LRWMutex) lock(id, source string, isWriteLock bool) (locked bool) {
    	lm.mu.Lock()
    	defer lm.mu.Unlock()
    
    	lm.id = id
    	lm.source = source
    	if isWriteLock {
    		if lm.ref == 0 && !lm.isWriteLock {
    			lm.ref = 1
    			lm.isWriteLock = true
    			locked = true
    		}
    	} else {
    		if !lm.isWriteLock {
    			lm.ref++
    			locked = true
    		}
    	}
    
    	return locked
    }
    
    const (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/lockosthread.go

    			os.Exit(1)
    		}
    		// Exit with the thread locked, which should exit the
    		// main thread.
    		ready <- true
    	}()
    	<-ready
    	time.Sleep(1 * time.Millisecond)
    	// Check that this goroutine is still running on a different
    	// thread.
    	self := C.pthread_self()
    	if C.pthread_equal(mainThread, self) != 0 {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    	}
    	println("OK")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:21:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultClassLoaderScope.java

        private void assertNotLocked() {
            if (locked) {
                throw new IllegalStateException("class loader scope is locked, scope identifier is " + id);
            }
        }
    
        @Override
        public ClassLoaderScope lock() {
            locked = true;
            return this;
        }
    
        @Override
        public boolean isLocked() {
            return locked;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 20:19:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/lockedfile.go

    package lockedfile
    
    import (
    	"fmt"
    	"io"
    	"io/fs"
    	"os"
    	"runtime"
    )
    
    // A File is a locked *os.File.
    //
    // Closing the file releases the lock.
    //
    // If the program exits while a file is locked, the operating system releases
    // the lock but may not do so promptly: callers must ensure that all locked
    // files are closed before exiting.
    type File struct {
    	osFile
    	closed bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.1K bytes
    - Viewed (0)
  8. src/internal/runtime/exithook/hooks.go

    }
    
    var (
    	locked  atomic.Int32
    	runGoid atomic.Uint64
    	hooks   []Hook
    	running bool
    
    	// runtime sets these for us
    	Gosched func()
    	Goid    func() uint64
    	Throw   func(string)
    )
    
    // Add adds a new exit hook.
    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DependencyLockingState.java

         *
         * If {@code true}, each locked dependency is added as a strict constraint,
         * and the resolution result must exactly match the set of locked dependencies.
         *
         * If {@code false}, each locked dependency is added a regular (lenient) constraint,
         * and the resolution result is not verified against the set of locked dependencies.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/runtime/rwmutex_test.go

    	"runtime/debug"
    	"sync/atomic"
    	"testing"
    )
    
    func parallelReader(m *RWMutex, clocked chan bool, cunlock *atomic.Bool, cdone chan bool) {
    	m.RLock()
    	clocked <- true
    	for !cunlock.Load() {
    	}
    	m.RUnlock()
    	cdone <- true
    }
    
    func doTestParallelReaders(numReaders int) {
    	GOMAXPROCS(numReaders + 1)
    	var m RWMutex
    	m.Init()
    	clocked := make(chan bool, numReaders)
    	var cunlock atomic.Bool
    	cdone := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top