Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,285 for threaded (0.25 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/internal/operations/logging/LoggingBuildOperationProgressIntegTest.groovy

                        tasks.all.logger.lifecycle("build finished from \${tasks.all.path}")
                    }
                }
    
                threaded {
                    println("threaded configuration output")
                }
    
                def threaded(Closure action) {
                    Thread.start(action).join()
                }
            """
    
            when:
            succeeds("all")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:34 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. test/chan/goroutines.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Torture test for goroutines.
    // Make a lot of goroutines, threaded together, and tear them down cleanly.
    
    package main
    
    import (
    	"os"
    	"strconv"
    )
    
    func f(left, right chan int) {
    	left <- <-right
    }
    
    func main() {
    	var n = 10000
    	if len(os.Args) > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 743 bytes
    - Viewed (0)
  3. samples/helloworld/src/app.py

    
    @app.route('/health')
    def health():
        return 'Helloworld is healthy', 200
    
    
    if __name__ == "__main__":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 13:44:21 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/graph.go

    		APIVersion: s.APIVersion,
    		UID:        s.UID,
    	}
    }
    
    var _ fmt.Stringer = objectReference{}
    var _ logr.Marshaler = objectReference{}
    
    // The single-threaded GraphBuilder.processGraphChanges() is the sole writer of the
    // nodes. The multi-threaded GarbageCollector.attemptToDeleteItem() reads the nodes.
    // WARNING: node has different locks on different fields. setters and getters
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 13:37:56 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
        return CHAR_BUFFER;
      }
    
      private Platform() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

            Map<Thread, Throwable> exceptions = [:]
            def exceptionHandler = { thread, exception ->
                exceptions.put(thread, exception)
                exception.printStackTrace()
            } as Thread.UncaughtExceptionHandler
    
            when:
            def thread1 = new Thread({
                println "Work 1 started"
                step.execute(work, context)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. src/runtime/lock_wasip1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build wasip1
    
    package runtime
    
    // wasm has no support for threads yet. There is no preemption.
    // See proposal: https://github.com/WebAssembly/threads
    // Waiting for a mutex or timeout is implemented as a busy loop
    // while allowing other goroutines to run.
    
    const (
    	mutex_unlocked = 0
    	mutex_locked   = 1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	newContent, err := c.newTLSContent()
    	if err != nil {
    		return err
    	}
    	// if the content is the same as what we currently have, we can simply skip it.  This works because we are single
    	// threaded.  If you ever make this multi-threaded, add a lock.
    	if newContent.Equal(c.currentlyServedContent) {
    		return nil
    	}
    
    	// make a shallow copy and override the dynamic pieces which have changed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.primitives.Ints;
    import java.util.Random;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * Single-threaded benchmark for {@link LoadingCache}.
     *
     * @author Charles Fry
     */
    public class LoadingCacheSingleThreadBenchmark {
      @Param({"1000", "2000"})
      int maximumSize;
    
      @Param("5000")
      int distinctKeys;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/c/python_api.h

    // Usually this happens automatically in TF_SessionRun. After this is called,
    // TF_SessionRun will no longer extend the session on every call.
    //
    // We expose this here to allow fine-grained synchronization in multi-threaded
    // workloads, which is required since the Python implementation depends on the
    // above mutation methods. This allows us to prevent modifications to nodes in
    // the graph after the session has been made aware of them.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top