Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,285 for threaded (0.15 sec)

  1. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc-bare-m.go

    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine enters a syscall, grabs a P, and starts running.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("ProcStart", trace.ProcID(1), testgen.Seq(1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 999 bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/lockosthread.go

    	// propagated into a newly created thread (via clone), or that thread
    	// is actually being re-used, then we should get scheduled on such a
    	// thread with high likelihood.
    	done := make(chan bool)
    	go func() {
    		runtime.LockOSThread()
    
    		// Get the CWD and check if this is the same as the main thread's
    		// CWD. Every thread should share the same CWD.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/runtime/signal_unix.go

    	}
    }
    
    // minitSignalMask is called when initializing a new m to set the
    // thread's signal mask. When this is called all signals have been
    // blocked for the thread.  This starts with m.sigmask, which was set
    // either from initSigmask for a newly created thread or by calling
    // sigsave if this is a non-Go thread calling a Go function. It
    // removes all essential signals from the mask, thus causing those
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        thread1.callAndAssertReturns(enter());
        thread2.callAndAssertBlocks(enter());
        thread1.callAndAssertReturns(leave());
        thread2.assertPriorCallReturns(enter());
      }
    
      public final void testTryEnter() throws Exception {
        thread1.callAndAssertReturns(true, tryEnter());
        thread2.callAndAssertReturns(false, tryEnter());
        thread1.callAndAssertReturns(true, tryEnter());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/cthread_windows.c

    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	uintptr_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0);
    	for(i=0; i<nthread; i++) {
    		WaitForSingleObject((HANDLE)thread_id[i], INFINITE);
    		CloseHandle((HANDLE)thread_id[i]);
    	}
    }
    
    __stdcall
    static unsigned int
    goDummyCallbackThread(void* p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/internal/trace/resources.go

    	}
    	return ProcID(r.id)
    }
    
    // Thread obtains a ThreadID from the resource ID.
    //
    // r.Kind must be ResourceThread or this function will panic.
    func (r ResourceID) Thread() ThreadID {
    	if r.Kind != ResourceThread {
    		panic(fmt.Sprintf("attempted to get ThreadID from %s resource ID", r.Kind))
    	}
    	return ThreadID(r.id)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutor.groovy

                    logger.log "timeout waiting for ${threads.size()} threads to complete"
                    threads.each { thread ->
                        IllegalStateException e = new IllegalStateException("Timeout waiting for ${thread.name} to complete.")
                        e.stackTrace = thread.stackTrace
                        if (failure == null) {
                            failure = e
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

        // Thread#setPriority() already checks for validity. These error messages
        // are nicer though and will fail-fast.
        checkArgument(
            priority >= Thread.MIN_PRIORITY,
            "Thread priority (%s) must be >= %s",
            priority,
            Thread.MIN_PRIORITY);
        checkArgument(
            priority <= Thread.MAX_PRIORITY,
            "Thread priority (%s) must be <= %s",
            priority,
            Thread.MAX_PRIORITY);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    		die("sigaction");
    	}
    }
    
    // Test raising SIGIO on a C thread with an alternate signal stack
    // when there is a Go signal handler for SIGIO.
    static void* thread1(void* arg __attribute__ ((unused))) {
    	stack_t ss;
    	int i;
    	stack_t nss;
    	struct timespec ts;
    
    	// Set up an alternate signal stack for this thread.
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = malloc(CSIGSTKSZ);
    	if (ss.ss_sp == NULL) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy

        }
    
        def "cleanup"() {
            lease?.leaseFinish()
            workerRegistry.stop()
        }
    
        def "executes all #runs operations in #threads threads"() {
            given:
            setupQueue(threads)
            def success = Mock(TestBuildOperation)
    
            when:
            runs.times { operationQueue.add(success) }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top