Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 173 for rocks (0.31 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * method equivalent to {@link java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}. If
     * the {@link #callAndAssertWaits} method is ever called in a test, the lock-like object must have a
     * method equivalent to {@link
     * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
      final List<Lock> locks = new ArrayList<>(numStripes);
    
      @Footprint
      Object sizeOfPopulatedStriped() {
        locks.clear();
        Striped<Lock> striped = impl.get(numStripes);
        for (int i : stripes) {
          locks.add(striped.getAt(i));
        }
        return striped;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
      final List<Lock> locks = new ArrayList<>(numStripes);
    
      @Footprint
      Object sizeOfPopulatedStriped() {
        locks.clear();
        Striped<Lock> striped = impl.get(numStripes);
        for (int i : stripes) {
          locks.add(striped.getAt(i));
        }
        return striped;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  4. internal/dsync/drwmutex.go

    			break
    		}
    	}
    
    	quorumLocked := checkQuorumLocked(locks, quorum) && locksFailed <= tolerance
    	if !quorumLocked {
    		log("dsync: Unable to acquire lock in quorum %#v\n", args)
    		// Release all acquired locks without quorum.
    		if !releaseAll(ctx, ds, tolerance, owner, locks, isReadLock, restClnts, names...) {
    			log("Unable to release acquired locks, these locks will expire automatically %#v\n", args)
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  5. internal/dsync/dsync_test.go

    	dm.Unlock(context.Background())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    }
    
    // Test two locks for same resource, one succeeds, one fails (after timeout)
    func TestTwoSimultaneousLocksForSameResource(t *testing.T) {
    	dm1st := NewDRWMutex(ds, "aap")
    	dm2nd := NewDRWMutex(ds, "aap")
    
    	dm1st.Lock(id, source)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReadWriteLock;
    import java.util.concurrent.locks.ReentrantLock;
    import java.util.concurrent.locks.ReentrantReadWriteLock;
    import junit.framework.TestCase;
    
    /**
     * Tests for Striped.
     *
     * @author Dimitris Andreou
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  7. internal/dsync/dsync-server_test.go

    		nodes[i] = httptest.NewServer(router)
    	}
    }
    
    const WriteLock = -1
    
    type lockServer struct {
    	mutex sync.Mutex
    	// Map of locks, with negative value indicating (exclusive) write lock
    	// and positive values indicating number of read locks
    	lockMap map[string]int64
    
    	// Refresh returns lock not found if set to true
    	lockNotFound bool
    
    	// Set to true if you want peers servers to do not respond
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  8. cmd/lock-rest-server.go

    const (
    	// Lock maintenance interval.
    	lockMaintenanceInterval = 1 * time.Minute
    
    	// Lock validity duration
    	lockValidityDuration = 1 * time.Minute
    )
    
    // lockMaintenance loops over all locks and discards locks
    // that have not been refreshed for some time.
    func lockMaintenance(ctx context.Context) {
    	if !globalIsDistErasure {
    		return
    	}
    
    	// Initialize a new ticker with 1 minute between each ticks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. apache-maven/src/assembly/maven/lib/ext/hazelcast/README.txt

    This directory is intended to contain Hazelcast [1] JARs for Maven Resolver Named Locks using Hazelcast.
    
    See here [2] on how to add necessary JARs.
    
    [1] https://github.com/hazelcast/hazelcast
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Aug 23 19:41:57 GMT 2022
    - 300 bytes
    - Viewed (0)
  10. apache-maven/src/assembly/maven/lib/ext/redisson/README.txt

    This directory is intended to contain Redisson [1] JARs for Maven Resolver Named Locks using Redisson.
    
    See here [2] on how to add necessary JARs.
    
    [1] https://github.com/redisson/redisson
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Aug 23 19:41:57 GMT 2022
    - 295 bytes
    - Viewed (0)
Back to top