Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 80 for blocked (0.28 sec)

  1. 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)
  2. src/runtime/testdata/testprog/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.
    	if mainTID != 0 && gettid() == mainTID {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    	}
    	println("OK")
    }
    
    func LockOSThreadAlt() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/NebulaPluginsSmokeTest.groovy

            "org.apache.commons:commons-math3": {
                "locked": "3.6.1",
                "requested": "3.6.1"
            }
        },
        "default": {
            "org.apache.commons:commons-math3": {
                "locked": "3.6.1",
                "requested": "3.6.1"
            }
        },
        "runtimeClasspath": {
            "org.apache.commons:commons-math3": {
                "locked": "3.6.1",
                "requested": "3.6.1"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/runtime/debugcall.go

    		// Transfer locked-ness to the new goroutine.
    		// Save lock state to restore later.
    		mp := gp.m
    		if mp != gp.lockedm.ptr() {
    			throw("inconsistent lockedm")
    		}
    		// Save the external lock count and clear it so
    		// that it can't be unlocked from the debug call.
    		// Note: we already locked internally to the thread,
    		// so if we were locked before we're still locked now.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingStrictModeIntegrationTest.groovy

            fails 'dependencies', '--update-locks', 'org:foo'
    
            then:
            failureHasCause("Locking strict mode: Configuration ':lockedConf' is locked but does not have lock state.")
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def 'ignores not locked configurations'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
    
            buildFile << """
    dependencyLocking {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/AbstractWorkerLeaseServiceTest.groovy

            service.startProjectExecution(parallel)
            return service
        }
    
        TestTrackedResourceLock resourceLock(String displayName, boolean locked, boolean hasLock = false) {
            return new TestTrackedResourceLock(displayName, coordinationService, Mock(ResourceLockContainer), locked, hasLock)
        }
    
        TestTrackedResourceLock resourceLock(String displayName) {
            return resourceLock(displayName, false)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. internal/dsync/lock-args.go

    	UID string
    
    	// Resources contains single or multiple entries to be locked/unlocked.
    	Resources []string
    
    	// Source contains the line number, function and file name of the code
    	// on the client node that requested the lock.
    	Source string
    
    	// Owner represents unique ID for this instance, an owner who originally requested
    	// the locked resource, useful primarily in figuring out stale locks.
    	Owner string
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 04:34:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLockManager.java

         * Creates a lock for the given file with the given mode. Acquires a lock with the given mode, which is held until the lock is
         * released by calling {@link FileLock#close()}. This method blocks until the lock can be acquired.
         *
         * @param target The file to be locked.
         * @param options The lock options.
         * @param targetDisplayName A display name for the target file. This is used in log and error messages.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/runtime/export_debug_test.go

    // will send SIGTRAP to thread ID tid. gp must be locked to its OS thread and
    // running.
    //
    // On success, InjectDebugCall returns the panic value of fn or nil.
    // If fn did not panic, its results will be available in args.
    func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill func(tid int) error, returnOnUnsafePoint bool) (any, error) {
    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/syscall/pwd_plan9.go

    // the most recent [Chdir] called in any goroutine. It's called internally
    // before executing any syscall which uses a relative pathname. Must
    // be called with the goroutine locked to the OS thread, to prevent
    // rescheduling on a different thread (potentially with a different
    // working directory) before the syscall is executed.
    func Fixwd() {
    	wdmu.Lock()
    	defer wdmu.Unlock()
    	fixwdLocked()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top