Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Synchronizer (0.15 sec)

  1. src/sync/waitgroup.go

    	if race.Enabled {
    		if delta < 0 {
    			// Synchronize decrements with Wait.
    			race.ReleaseMerge(unsafe.Pointer(wg))
    		}
    		race.Disable()
    		defer race.Enable()
    	}
    	state := wg.state.Add(uint64(delta) << 32)
    	v := int32(state >> 32)
    	w := uint32(state)
    	if race.Enabled && delta > 0 && v == int32(delta) {
    		// The first increment must be synchronized with Wait.
    		// Need to model this as a read, because there can be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ScopedFingerprintWriter.kt

    ) : Closeable {
        override fun close() {
            // we synchronize access to all resources used by callbacks
            // in case there was still an event being dispatched at closing time.
            synchronized(writeContext) {
                unsafeWrite(null)
                writeContext.close()
            }
        }
    
        fun write(value: T, trace: PropertyTrace? = null) {
            synchronized(writeContext) {
                withPropertyTrace(trace) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/runtime/proflabel.go

    	// the acquire in profBuf.read synchronizes with *all* prior
    	// setProfLabel operations, not just the most recent one. This
    	// is important because profBuf.read will observe different
    	// labels set by different setProfLabel operations on
    	// different goroutines, so it needs to synchronize with all
    	// of them (this wouldn't be an issue if we could synchronize
    	// on &getg().labels since we would synchronize with each
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/sync/rwmutex.go

    //
    // In the terminology of [the Go memory model],
    // the n'th call to [RWMutex.Unlock] “synchronizes before” the m'th call to Lock
    // for any n < m, just as for [Mutex].
    // For any call to RLock, there exists an n such that
    // the n'th call to Unlock “synchronizes before” that call to RLock,
    // and the corresponding call to [RWMutex.RUnlock] “synchronizes before”
    // the n+1'th call to Lock.
    //
    // [the Go memory model]: https://go.dev/ref/mem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/DirectExecutorService.java

        startTask();
        try {
          command.run();
        } finally {
          endTask();
        }
      }
    
      @Override
      public boolean isShutdown() {
        synchronized (lock) {
          return shutdown;
        }
      }
    
      @Override
      public void shutdown() {
        synchronized (lock) {
          shutdown = true;
          if (runningTasks == 0) {
            lock.notifyAll();
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

        startTask();
        try {
          command.run();
        } finally {
          endTask();
        }
      }
    
      @Override
      public boolean isShutdown() {
        synchronized (lock) {
          return shutdown;
        }
      }
    
      @Override
      public void shutdown() {
        synchronized (lock) {
          shutdown = true;
          if (runningTasks == 0) {
            lock.notifyAll();
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/actor/internal/DefaultActorFactory.java

                }
                return actor;
            }
        }
    
        private void stopped(NonBlockingActor actor) {
            synchronized (lock) {
                nonBlockingActors.values().remove(actor);
            }
        }
    
        private void stopped(BlockingActor actor) {
            synchronized (lock) {
                blockingActors.values().remove(actor);
            }
        }
    
        private class BlockingActor implements Actor {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/daemon-services/src/main/java/org/gradle/internal/daemon/clientinput/StdInStream.java

                }
            }
        }
    
        @Override
        public void close() {
            synchronized (lock) {
                // Allow threads to read anything still buffered
                closed = true;
                lock.notifyAll();
            }
        }
    
        public void received(byte[] bytes) {
            synchronized (lock) {
                if (!waiting) {
                    throw new IllegalStateException();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheClassLoaderScopeRegistryListener.kt

        override fun scopeFor(classLoader: ClassLoader?): Pair<ClassLoaderScopeSpec, ClassLoaderRole>? {
            synchronized(lock) {
                return loaders[classLoader]
            }
        }
    
        override fun childScopeCreated(parentId: ClassLoaderScopeId, childId: ClassLoaderScopeId, origin: ClassLoaderScopeOrigin?) {
            synchronized(lock) {
                if (scopeSpecs.containsKey(childId)) {
                    // scope is being reused
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/services/internal/RegisteredBuildServiceProvider.java

            synchronized (instanceLock) {
                stopActions = stopActions.plus(stopAction);
            }
        }
    
        @Override
        protected Value<? extends T> calculateOwnValue(ValueConsumer consumer) {
            return Value.of(getInstance());
        }
    
        private T getInstance() {
            listener.beforeGet(this);
            synchronized (instanceLock) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top