Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for semacquire (0.29 sec)

  1. src/sync/runtime.go

    package sync
    
    import "unsafe"
    
    // defined in package runtime
    
    // Semacquire waits until *s > 0 and then atomically decrements it.
    // It is intended as a simple sleep primitive for use by the synchronization
    // library and should not be used directly.
    func runtime_Semacquire(s *uint32)
    
    // Semacquire(RW)Mutex(R) is like Semacquire, but for profiling contended
    // Mutexes and RWMutexes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/runtime/sema_test.go

    				default:
    				}
    				Gosched()
    			}
    		}()
    	}
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		Semacquire(&sema)
    		atomic.CompareAndSwapUint32(&res, 0, 1)
    
    		Semrelease1(&sema, true, 0)
    		close(done)
    	}()
    	for SemNwait(&sema) == 0 {
    		Gosched() // wait for goroutine to block in Semacquire
    	}
    
    	// The crux of the test: we release the semaphore with handoff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 21 19:37:22 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLeaseRegistry.java

         * If no locks were held at the time the method was called, then no attempt will be made to reacquire a lock on completion.
         * While blocking to reacquire the project lock, all worker leases held by the thread will be released and reacquired once the project lock is obtained.
         */
        <T> T runAsIsolatedTask(Factory<T> action);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java

         */
        <T> T withReplacedLocks(Collection<? extends ResourceLock> currentLocks, ResourceLock newLock, Factory<T> factory);
    
        /**
         * Runs a given {@link Factory} while the specified locks are released and then reacquire the locks
         * upon completion.  If the locks cannot be immediately reacquired, the current worker lease will be released
         * and the method will block until the locks are reacquired.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerThreadRegistry.java

        /**
         * Runs the given action as a worker. While the action is running, the thread can acquire resource locks.
         * A worker lease is also granted to the thread. The thread can release this if it needs to, but should reacquire
         * the lease prior to doing any meaningful work.
         *
         * This method is reentrant so that a thread can call this method from the given action.
         *
         * This method blocks until a worker lease is available.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc.go

    Michael Anthony Knyszek <******@****.***> 1716583527 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/tests/go122-syscall-steal-proc-reacquire-new-proc.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 592 bytes
    - Viewed (0)
  8. pkg/test/loadbalancersim/timer/queue.go

    }
    
    func (q *Queue) resetTimer() {
    	// Below is a separate function to limit the scope of the lock.
    	// We don't want to lock when we modify the timer in case it causes
    	// an immediate callback, which would reacquire the lock.
    	needReset, resetDuration := func() (bool, time.Duration) {
    		q.mutex.Lock()
    		defer q.mutex.Unlock()
    
    		if q.stopping {
    			// Ignore the event, since we're already shutting down.
    			return false, 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc.go

    Michael Anthony Knyszek <******@****.***> 1716583527 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/interface.go

    	// all callers may acquire. Versions of this library prior to Kubernetes 1.14 will not
    	// attempt to acquire leases with empty identities and will wait for the full lease
    	// interval to expire before attempting to reacquire. This value is set to empty when
    	// a client voluntarily steps down.
    	HolderIdentity string `json:"holderIdentity"`
    	// HolderKey is the Key of the lease owner. This may be empty if a key is not set.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 6K bytes
    - Viewed (0)
Back to top