Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for goroutines (0.37 sec)

  1. src/runtime/debug.go

    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		total += mp.mLockProfile.waitTime.Load()
    	}
    
    	return total
    }
    
    // NumGoroutine returns the number of goroutines that currently exist.
    func NumGoroutine() int {
    	return int(gcount())
    }
    
    //go:linkname debug_modinfo runtime/debug.modinfo
    func debug_modinfo() string {
    	return modinfo
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/runtime/traceevent.go

    	// Goroutines.
    	traceEvGoCreate            // goroutine creation [timestamp, new goroutine ID, new stack ID, stack ID]
    	traceEvGoCreateSyscall     // goroutine appears in syscall (cgo callback) [timestamp, new goroutine ID]
    	traceEvGoStart             // goroutine starts running [timestamp, goroutine ID, goroutine seq]
    	traceEvGoDestroy           // goroutine ends [timestamp]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. src/internal/trace/resources.go

    const (
    	GoUndetermined GoState = iota // No information is known about the goroutine.
    	GoNotExist                    // Goroutine does not exist.
    	GoRunnable                    // Goroutine is runnable but not running.
    	GoRunning                     // Goroutine is running.
    	GoWaiting                     // Goroutine is waiting on something to happen.
    	GoSyscall                     // Goroutine is in a system call.
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. pkg/controller/volume/pvprotection/pv_protection_controller.go

    		AddFunc: func(obj interface{}) {
    			e.pvAddedUpdated(logger, obj)
    		},
    		UpdateFunc: func(old, new interface{}) {
    			e.pvAddedUpdated(logger, new)
    		},
    	})
    
    	return e
    }
    
    // Run runs the controller goroutines.
    func (c *Controller) Run(ctx context.Context, workers int) {
    	defer utilruntime.HandleCrash()
    	defer c.queue.ShutDown()
    
    	logger := klog.FromContext(ctx)
    	logger.Info("Starting PV protection controller")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/sync/pool_test.go

    		time.Sleep(time.Millisecond)
    		return 42
    	}
    	var mstats1, mstats2 runtime.MemStats
    	runtime.ReadMemStats(&mstats1)
    	b.RunParallel(func(pb *testing.PB) {
    		// Simulate 100X the number of goroutines having items
    		// checked out from the Pool simultaneously.
    		items := make([]any, 100)
    		var sink []byte
    		for pb.Next() {
    			// Stress the pool.
    			for i := range items {
    				items[i] = p.Get()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. pkg/registry/core/service/portallocator/storage/storage_test.go

    		},
    	}
    	for _, tt := range tests {
    		tt := tt // NOTE: https://github.com/golang/go/wiki/CommonMistakes#using-goroutines-on-loop-iterator-variables
    		t.Run(tt.name, func(t *testing.T) {
    			err := storage.Allocate(tt.port)
    			if (err == nil) != (tt.errMsg == "") {
    				t.Fatalf("Error expected %v, received %v", tt.errMsg, err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. okhttp-coroutines/api/okhttp-coroutines.api

    public final class okhttp3/coroutines/ExecuteAsyncKt {
    	public static final fun executeAsync (Lokhttp3/Call;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 163 bytes
    - Viewed (0)
  8. src/runtime/coro.go

    // as would be needed for a coroutine implementation.
    // The coro does not represent a specific coroutine, only the ability
    // to do coroutine-style control transfers.
    // It can be thought of as like a special channel that always has
    // a goroutine blocked on it. If another goroutine calls coroswitch(c),
    // the caller becomes the goroutine blocked in c, and the goroutine
    // formerly blocked in c starts running.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Running.kt

     * limitations under the License.
     */
    package org.gradle.internal.serialize.graph
    
    import kotlin.contracts.InvocationKind
    import kotlin.contracts.contract
    import kotlin.coroutines.Continuation
    import kotlin.coroutines.EmptyCoroutineContext
    import kotlin.coroutines.startCoroutine
    
    
    /**
     * Runs the given [readOperation] synchronously.
     */
    fun <T : ReadContext, R> T.runReadOperation(readOperation: suspend T.() -> R): R {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-bare-m.go

    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A bare M stole the goroutine's P at the generation boundary.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 956 bytes
    - Viewed (0)
Back to top