Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,935 for thread1 (0.19 sec)

  1. pkg/kubelet/cm/cpumanager/topology/topology.go

    }
    
    // getUniqueCoreID computes coreId as the lowest cpuID
    // for a given Threads []int slice. This will assure that coreID's are
    // platform unique (opposite to what cAdvisor reports)
    func getUniqueCoreID(threads []int) (coreID int, err error) {
    	if len(threads) == 0 {
    		return 0, fmt.Errorf("no cpus provided")
    	}
    
    	if len(threads) != cpuset.New(threads...).Size() {
    		return 0, fmt.Errorf("cpus provided are not unique")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/borrowing_test.go

    				concIntegrators[flow] = concIntegrator
    				exec := func() {
    					concIntegrator.Inc()
    					clk.Sleep(250 * time.Millisecond)
    					concIntegrator.Dec()
    				}
    				nThreads := clientsPerFlow[flow]
    				for thread := 0; thread < nThreads; thread++ {
    					go func() {
    						startWG.Done()
    						wait.Until(func() { controller.Handle(ctx, rd, noteFn, workEstr, qnf, exec) }, 0, ctx.Done())
    					}()
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    // TSAN defers asynchronous signals until the signaled thread calls into libc.
    // Since the Go runtime makes direct futex syscalls, Go runtime threads could
    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    )
    
    /*
    #cgo CFLAGS: -g -fsanitize=thread
    #cgo LDFLAGS: -g -fsanitize=thread
    */
    import "C"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 798 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/lockosthread.go

    		// Because GOMAXPROCS=1, this *should* be on the main
    		// thread. Stay there.
    		runtime.LockOSThread()
    		self := C.pthread_self()
    		if C.pthread_equal(mainThread, self) == 0 {
    			println("failed to start goroutine on main thread")
    			os.Exit(1)
    		}
    		// Exit with the thread locked, which should exit the
    		// main thread.
    		ready <- true
    	}()
    	<-ready
    	time.Sleep(1 * time.Millisecond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:21:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryConcurrencyTest.groovy

            registry.add(Closeable, {
                instant.closing
                thread.blockUntil.lookupDone
            } as Closeable)
    
            when:
            async {
                start() {
                    registry.close()
                }
                start {
                    thread.blockUntil.closing
                    try {
                        registry.get(Closeable)
                    } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorNestingIntegrationTest.groovy

                        threadGroup.enumerate(threads)
                        return threads.findAll { it?.name?.startsWith("${WorkerExecutionQueueFactory.QUEUE_DISPLAY_NAME}") }
                    }
                }
    
                task runInWorker(type: NestingWorkerTask) {
                    submissions = ${maxWorkers * 2}
                    childSubmissions = ${maxWorkers * 10}
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationQueue.java

            signalNoMoreWork();
    
            // Use this thread to process any work - this allows work to be executed using the
            // worker lease acquired by this thread even if the executor thread pool is full of
            // workers from other queues.  In other words, it ensures that all worker leases
            // are being utilized, regardless of the bounds of the thread pool.
            new WorkerRunnable().run();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 31 15:18:20 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/util/internal/DisconnectableInputStream.java

        static class ThreadExecuter implements Action<Runnable> {
            @Override
            public void execute(Runnable runnable) {
                Thread thread = new Thread(runnable);
                thread.setName("DisconnectableInputStream source reader");
                thread.setDaemon(true);
                thread.start();
            }
        }
    
        public DisconnectableInputStream(InputStream source) {
            this(source, 1024);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:46 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_libinit.c

    		abort();
    	}
    }
    
    // Store the g into a thread-specific value associated with the pthread key pthread_g.
    // And pthread_key_destructor will dropm when the thread is exiting.
    void x_cgo_bindm(void* g) {
    	// We assume this will always succeed, otherwise, there might be extra M leaking,
    	// when a C thread exits after a cgo call.
    	// We only invoke this function once per thread in runtime.needAndBindM,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/UnitOfWorkParticipant.java

    package org.gradle.cache;
    
    /**
     * Participates in a unit of work that accesses the cache. Implementations do not need to be thread-safe and are accessed by a single thread at a time.
     */
    public interface UnitOfWorkParticipant {
        /**
         * Called just after the cache is locked. Called before any work is performed by other threads. This method may access the cache files.
         *
         * @param currentCacheState the current cache state.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top