Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 483 for asleep (0.11 sec)

  1. test/fixedbugs/issue21576.go

    	cmd := exec.CommandContext(ctx, "go", "run", file)
    	output, err := cmd.CombinedOutput()
    	if err == nil {
    		log.Fatalf("Passed, expected an error")
    	}
    
    	want := []byte("fatal error: all goroutines are asleep - deadlock!")
    	if !bytes.Contains(output, want) {
    		log.Fatalf("Unmatched error message %q:\nin\n%s\nError: %v", want, output, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/sync/cond_test.go

    			c.Wait()
    			awake <- true
    			m.Unlock()
    		}()
    	}
    	for i := 0; i < n; i++ {
    		<-running // Wait for everyone to run.
    	}
    	for n > 0 {
    		select {
    		case <-awake:
    			t.Fatal("goroutine not asleep")
    		default:
    		}
    		m.Lock()
    		c.Signal()
    		m.Unlock()
    		<-awake // Will deadlock if no goroutine wakes up
    		select {
    		case <-awake:
    			t.Fatal("too many goroutines awake")
    		default:
    		}
    		n--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 18:52:42 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. src/runtime/abi_test.go

    	// fing will only pick the new IntRegArgs up if it's currently
    	// sleeping and wakes up, so wait for it to go to sleep.
    	success := false
    	for i := 0; i < 100; i++ {
    		if runtime.FinalizerGAsleep() {
    			success = true
    			break
    		}
    		time.Sleep(20 * time.Millisecond)
    	}
    	if !success {
    		t.Fatal("finalizer not asleep?")
    	}
    
    	argRegsBefore := runtime.SetIntArgRegs(abi.IntArgRegs)
    	defer runtime.SetIntArgRegs(argRegsBefore)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Stopwatch.java

     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
     * <p><b>Warning for Android users:</b> a stopwatch with default behavior may not continue to keep
     * time while the device is asleep. Instead, create one like this:
     *
     * <pre>{@code
     * Stopwatch.createStarted(
     *      new Ticker() {
     *        public long read() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 21:38:09 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  5. src/runtime/tracecpu.go

    			// non-blocking. See #61768 for more details.
    			//
    			// Like the runtime/pprof package, even if that bug didn't exist
    			// we would still want to do a goroutine-level sleep in between
    			// reads to avoid frequent wakeups.
    			trace.cpuSleep.sleep(100_000_000)
    
    			tl := traceAcquire()
    			if !tl.ok() {
    				// Tracing disabled.
    				break
    			}
    			keepGoing := traceReadCPU(tl.gen)
    			traceRelease(tl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Stopwatch.java

     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
     * <p><b>Warning for Android users:</b> a stopwatch with default behavior may not continue to keep
     * time while the device is asleep. Instead, create one like this:
     *
     * <pre>{@code
     * Stopwatch.createStarted(
     *      new Ticker() {
     *        public long read() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. pkg/sleep/sleep.go

    // limitations under the License.
    
    package sleep
    
    import (
    	"context"
    	"time"
    )
    
    // UntilContext sleeps for the given duration, or until the context is complete.
    // Returns true if the sleep completes the full duration
    func UntilContext(ctx context.Context, d time.Duration) bool {
    	return Until(ctx.Done(), d)
    }
    
    // Until sleeps for the given duration, or until the channel is closed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 07 14:36:37 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. samples/sleep/sleep.yaml

    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: sleep
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: sleep
      template:
        metadata:
          labels:
            app: sleep
        spec:
          terminationGracePeriodSeconds: 0
          serviceAccountName: sleep
          containers:
          - name: sleep
            image: curlimages/curl
            command: ["/bin/sleep", "infinity"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 22 13:58:53 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. samples/security/spire/sleep-spire.yaml

    # Sleep service
    ##################################################################################################
    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: sleep
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: sleep
      labels:
        app: sleep
        service: sleep
    spec:
      ports:
      - port: 80
        name: http
      selector:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 24 22:08:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. samples/sleep/sleep-vault.yaml

    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: sleep
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: sleep
      template:
        metadata:
          labels:
            app: sleep
        spec:
          serviceAccountName: vault-citadel-sa
          containers:
          - name: sleep
            image: curlimages/curl
            command: ["/bin/sleep", "infinity"]
            imagePullPolicy: IfNotPresent
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 22 13:58:53 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top