Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 481 for Acquirem (0.33 sec)

  1. src/runtime/tracestatus.go

    	// This saves space in the resulting trace by keeping the counter small and allows
    	// GoStatus and GoCreate events to omit a sequence number (implicitly 0).
    	seq [2]uint64
    }
    
    // acquireStatus acquires the right to emit a Status event for the scheduling resource.
    func (r *traceSchedResourceState) acquireStatus(gen uintptr) bool {
    	if !r.statusTraced[gen%3].CompareAndSwap(0, 1) {
    		return false
    	}
    	r.readyNextGen(gen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ExclusiveCacheAccessCoordinator.java

    import java.util.function.Supplier;
    
    /**
     * Provides synchronised access to a cache.
     */
    public interface ExclusiveCacheAccessCoordinator {
        /**
         * Performs some work against the cache. Acquires exclusive locks on the appropriate resources, so that the given action is the only action to execute across all processes (including this one). Releases the locks and all resources at the end of the action.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/FileLockOutcome.java

        };
    
        public boolean isLockWasAcquired() {
            return false;
        }
    
        public FileLock getFileLock() {
            throw new IllegalStateException("Lock was not acquired");
        }
    
        static FileLockOutcome acquired(FileLock fileLock) {
            return new FileLockOutcome() {
                @Override
                public boolean isLockWasAcquired() {
                    return true;
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer.go

    	// ErrIsNotEmpty is returned when the buffer is not empty and not blocking.
    	ErrIsNotEmpty = errors.New("ringbuffer is not empty")
    
    	// ErrAcquireLock is returned when the lock is not acquired on Try operations.
    	ErrAcquireLock = errors.New("unable to acquire lock")
    
    	// ErrWriteOnClosed is returned when write on a closed ringbuffer.
    	ErrWriteOnClosed = errors.New("write on closed ringbuffer")
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/Synchronizer.java

         *
         * Fails if the current thread is already holding the resource lock. May release project locks prior to blocking, as per {@link WorkerLeaseService#blocking(Runnable)}.
         */
        void withLock(Runnable action);
    
        /**
         * Runs the given action while holding the associated resource lock, blocking until the lock can be acquired.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/OnDemandFileAccessTest.groovy

        OnDemandFileAccess lock
        File file
    
        def setup() {
            file = dir.file("some-target-file")
            lock = new OnDemandFileAccess(file, "some-lock", manager)
        }
    
        def "acquires shared lock to read file"() {
            def action = {} as Supplier
    
            when:
            lock.readFile(action)
    
            then:
            !file.exists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/SharedResourceLeaseRegistryTest.groovy

                        coordinationService.withStateLock(lock(sharedResourceLock))
                        assert lockIsHeld(sharedResourceLock)
                        acquired.countDown()
                        acquired.await()
                        coordinationService.withStateLock(unlock(sharedResourceLock))
                    }
                }
            }
    
            then:
            noExceptionThrown()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. pkg/util/flock/flock_other.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flock
    
    // Acquire is not implemented on non-unix systems.
    func Acquire(path string) error {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 826 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * evaluate the integral of the function from 7.0 to 10.0.
       *
       * Using integrals guarantees that the effect of a single acquire(3) is equivalent to {
       * acquire(1); acquire(1); acquire(1); }, or { acquire(2); acquire(1); }, etc, since the integral
       * of the function in [7.0, 10.0] is equivalent to the sum of the integrals of [7.0, 8.0], [8.0,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                    }
                    // one extra acquire to keep this open till the stream is released
                    return this.handle.acquire();
                }
    
            }
            log.trace("Pipe already open");
            return this.handle.acquire();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#getInput()
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
Back to top