Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for threadRing (0.2 sec)

  1. test/stress/runstress.go

    		out <- n - 1
    	}
    }
    
    func threadRing(bufsize int) {
    	const N = 100
    	donec := make(chan bool)
    	one := make(chan int, bufsize) // will be input to thread 1
    	var in, out chan int = nil, one
    	for i := 1; i <= N-1; i++ {
    		in, out = out, make(chan int, bufsize)
    		go ringf(in, out, donec)
    	}
    	go ringf(out, one, donec)
    	one <- N
    	<-donec
    	Println("did threadring of", bufsize)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. docs/em/docs/how-to/sql-databases-peewee.md

    ๐Ÿ‘‘ โ” โฎ๏ธ ๐Ÿ’ &amp; FastAPI ๐Ÿ‘ˆ ๐Ÿ’ โš“๏ธ ๐Ÿ™‡ ๐Ÿ”› <a href="https://docs.python.org/3/library/threading.html#thread-local-data" class="external-link" target="_blank">๐Ÿ `threading.local`</a>, &amp; โšซ๏ธ ๐Ÿšซ โœ”๏ธ ๐ŸŽฏ ๐ŸŒŒ ๐Ÿ” โšซ๏ธ โš–๏ธ โžก๏ธ ๐Ÿ‘† ๐Ÿต ๐Ÿ”—/๐ŸŽ‰ ๐Ÿ”— (๐Ÿ”จ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿ”ฐ).
    
    &amp; `threading.local` ๐Ÿšซ ๐Ÿ”— โฎ๏ธ ๐Ÿ†• ๐Ÿ” โš’ ๐Ÿ› ๐Ÿ.
    
    !!! note "๐Ÿ“ก โ„น"
        `threading.local` โš™๏ธ โœ”๏ธ "๐ŸŽฑ" ๐Ÿ”ข ๐Ÿ‘ˆ โœ”๏ธ ๐ŸŽ ๐Ÿ’ฒ ๐Ÿ”  ๐Ÿงต.
    
        ๐Ÿ‘‰ โš  ๐Ÿ— ๐Ÿ› ๏ธ ๐Ÿ— โœ”๏ธ 1๏ธโƒฃ ๐Ÿ‘ ๐Ÿงต ๐Ÿ“ ๐Ÿ“จ, ๐Ÿ™…โ€โ™‚ ๐ŸŒ–, ๐Ÿ™…โ€โ™‚ ๐ŸŒ˜.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks.cc

    // Note a side effect of this method is that multi threading will be disabled.
    void EnablePassIRPrinting(PassManager& pm, const std::string& dump_group_name,
                              llvm::StringRef module_name) {
      // Print the whole module after each pass, which requires disabling
      // multi-threading as well.
      pm.getContext()->disableMultithreading();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 14:26:22 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/sql-databases-peewee.md

    And `threading.local` is not compatible with the new async features of modern Python.
    
    !!! note "Technical Details"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 16 13:23:25 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/tests/mark_functions_noinline.mlir

    // RUN: tf-quant-opt %s -mark-functions-noinline='noinline-functions=noinline0' \
    // RUN:     -allow-unregistered-dialect -mlir-disable-threading \
    // RUN:     -split-input-file -verify-diagnostics | FileCheck %s
    
    // Tests that the function is marked tf._noinline = true.
    
    // CHECK-LABEL: @noinline0
    // CHECK-SAME: attributes {{{.*tf._noinline = true.*}}}
    func.func @noinline0() -> (tensor<0xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 00:02:46 UTC 2023
    - 841 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks.h

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // Setup the input pass manager to enable IR dumping after each pass.
    // Note a side effect of this method is that multi threading will be disabled.
    void EnablePassIRPrinting(mlir::PassManager& pm,
                              const std::string& dump_group_name,
                              llvm::StringRef module_name = llvm::StringRef());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 14:26:22 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpHeaderSchemeFactory.java

    import org.apache.http.annotation.ThreadingBehavior;
    import org.apache.http.auth.AuthScheme;
    import org.apache.http.protocol.HttpContext;
    
    import java.nio.charset.Charset;
    
    @Contract(threading = ThreadingBehavior.IMMUTABLE)
    @SuppressWarnings("deprecation")
    public class HttpHeaderSchemeFactory implements org.apache.http.auth.AuthSchemeFactory, org.apache.http.auth.AuthSchemeProvider {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.cc

    // Note a side effect of this method is that multi threading will be disabled.
    void EnablePassIRPrinting(PassManager& pm, const std::string& dump_group_name,
                              llvm::StringRef module_name) {
      // Print the whole module after each pass, which requires disabling
      // multi-threading as well.
      pm.getContext()->disableMultithreading();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/Block.h"  // from @llvm-project
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "mlir/IR/Threading.h"  // from @llvm-project
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/session_utils.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

     * Base class for services that can implement {@link #startUp}, {@link #run} and {@link #shutDown}
     * methods. This class uses a single thread to execute the service; consider {@link AbstractService}
     * if you would like to manage any threading manually.
     *
     * @author Jesse Wilson
     * @since 1.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractExecutionThreadService implements Service {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top