Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 510 for locks (0.12 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

         * always under a lock.
         */
        private static final class SupplantableFuture implements Cancellable {
          private final ReentrantLock lock;
    
          @GuardedBy("lock")
          private Future<@Nullable Void> currentFuture;
    
          SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) {
            this.lock = lock;
            this.currentFuture = currentFuture;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 16:22:21 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. cmd/notification.go

    			}
    			serverLocksResp, err := sys.peerClients[index].GetLocks(ctx)
    			if err != nil {
    				return err
    			}
    			locksResp[index] = &PeerLocks{
    				Addr:  sys.peerClients[index].host.String(),
    				Locks: serverLocksResp,
    			}
    			return nil
    		}, index)
    	}
    	for index, err := range g.Wait() {
    		reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress",
    			sys.peerClients[index].host.String())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    }
    
    // Close - marks the client as closed.
    func (client *peerRESTClient) Close() error {
    	client.restClient.Close()
    	return nil
    }
    
    // GetLocks - fetch older locks for a remote node.
    func (client *peerRESTClient) GetLocks(ctx context.Context) (lockMap map[string][]lockRequesterInfo, err error) {
    	resp, err := getLocksRPC.Call(ctx, client.gridConn(), grid.NewMSS())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    type IAMStorageAPI interface {
    	// The role of the read-write lock is to prevent go routines from
    	// concurrently reading and writing the IAM storage. The (r)lock()
    	// functions return the iamCache. The cache can be safely written to
    	// only when returned by `lock()`.
    	lock() *iamCache
    	unlock()
    	rlock() *iamCache
    	runlock()
    	getUsersSysType() UsersSysType
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    	defer func() {
    		if unlockOnDefer {
    			nsUnlocker()
    		}
    	}()
    
    	// Acquire lock
    	if !opts.NoLock {
    		lock := z.NewNSLock(bucket, object)
    		lkctx, err := lock.GetRLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return nil, err
    		}
    		ctx = lkctx.Context()
    		nsUnlocker = func() { lock.RUnlock(lkctx) }
    		unlockOnDefer = true
    	}
    
    	checkPrecondFn := opts.CheckPrecondFn
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. test-site/activator-launch-1.3.2.jar

    scala.Serializable { public void ServerLauncher$$anonfun$serverJvmArgs$3(); } xsbt/boot/Locks$.class package xsbt.boot; public final synchronized class Locks$ implements xsbti.GlobalLock { public static final Locks$ MODULE$; private final Cache locks; public static void <clinit>(); public final Object apply(java.io.File, java.util.concurrent.Callable); private Object apply0(java.io.File, java.util.concurrent.Callable); private void Locks$(); } xsbt/boot/ConfigurationParser$$anonfun$3.class package xsbt.boot; public...
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (0)
  7. cmd/metacache-set.go

    			}
    			if retries >= maxTries {
    				return err
    			}
    			retries++
    			time.Sleep(retryDelay)
    		}
    		return nil
    	})
    
    	// Blocks while consuming entries or an error occurs.
    	err = bw.Close()
    	if err != nil {
    		mc.setErr(err.Error())
    	}
    	metaMu.Lock()
    	defer metaMu.Unlock()
    	if mc.meta.error != "" {
    		return err
    	}
    	// Save success
    	mc.meta.status = scanStateSuccess
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

    import java.util.concurrent.TimeoutException;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.concurrent.locks.LockSupport;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link AbstractFuture}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    			case InsufficientReadQuorum, StorageErr:
    				return true, nil
    			}
    			return false, err
    		}
    		err = d.deserialize(r)
    		r.Close()
    		return err != nil, nil
    	}
    
    	// Caches are read+written without locks,
    	retries := 0
    	for retries < 5 {
    		retry, err := load(name, time.Minute)
    		if err != nil {
    			return toObjectErr(err, dataUsageBucket, name)
    		}
    		if !retry {
    			break
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

    import okhttp3.internal.EMPTY_BYTE_ARRAY
    import okhttp3.internal.EMPTY_HEADERS
    import okhttp3.internal.concurrent.TaskFaker
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.notifyAll
    import okhttp3.internal.wait
    import okio.AsyncTimeout
    import okio.Buffer
    import okio.BufferedSource
    import okio.Source
    import okio.buffer
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top