- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 486 for waitc (0.15 sec)
-
src/os/wait_wait6.go
package os import ( "runtime" "syscall" ) // blockUntilWaitable attempts to block until a call to p.Wait will // succeed immediately, and reports whether it has done so. // It does not actually call p.Wait. func (p *Process) blockUntilWaitable() (bool, error) { var errno syscall.Errno for { _, errno = wait6(_P_PID, p.Pid, syscall.WEXITED|syscall.WNOWAIT) if errno != syscall.EINTR { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 21:25:45 UTC 2022 - 781 bytes - Viewed (0) -
src/runtime/rwmutex_test.go
var cunlock atomic.Bool cdone := make(chan bool) for i := 0; i < numReaders; i++ { go parallelReader(&m, clocked, &cunlock, cdone) } // Wait for all parallel RLock()s to succeed. for i := 0; i < numReaders; i++ { <-clocked } cunlock.Store(true) // Wait for the goroutines to finish. for i := 0; i < numReaders; i++ { <-cdone } } func TestParallelRWMutexReaders(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 22:00:45 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue9400_linux.go
} // Disable GC for the duration of the test. // This avoids a potential GC deadlock when spinning in uninterruptible ASM below #49695. defer debug.SetGCPercent(debug.SetGCPercent(-1)) // SetGCPercent waits until the mark phase is over, but the runtime // also preempts at the start of the sweep phase, so make sure that's // done too. See #49695. runtime.GC() // Temporarily rewind the stack and trigger SIGSETXID
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/lock_sema.go
// to the caller. // This reduces the nosplit footprint of notetsleep_internal. gp = getg() // Register for wakeup on n->waitm. if !atomic.Casuintptr(&n.key, 0, uintptr(unsafe.Pointer(gp.m))) { // Must be locked (got wakeup). if n.key != locked { throw("notetsleep - waitm out of sync") } return true } if ns < 0 { // Queued. Sleep. gp.m.blocked = true if *cgo_yield == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 6.8K bytes - Viewed (0) -
src/os/exec_unix.go
} // If we can block until Wait4 will succeed immediately, do so. ready, err := p.blockUntilWaitable() if err != nil { return nil, err } if ready { // Mark the process done now, before the call to Wait4, // so that Process.pidSignal will not send a signal. p.pidDeactivate(statusDone) // Acquire a write lock on sigMu to wait for any // active call to the signal method to complete. p.sigMu.Lock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/edges/NodeDependencySetTest.groovy
class NodeDependencySetTest extends Specification { def node = Stub(Node) def set = new DependencySuccessorsOnlyNodeSet() def "does not wait when the set is empty"() { expect: set.getState(node) == Node.DependenciesState.COMPLETE_AND_SUCCESSFUL } def "waits until all dependencies have completed successfully"() { def dep1 = Stub(Node) def dep2 = Stub(Node) given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 12 20:17:10 UTC 2022 - 2.7K bytes - Viewed (0) -
src/context/example_test.go
// This example uses AfterFunc to define a function which waits on a sync.Cond, // stopping the wait when a context is canceled. func ExampleAfterFunc_cond() { waitOnCond := func(ctx context.Context, cond *sync.Cond, conditionMet func() bool) error { stopf := context.AfterFunc(ctx, func() { // We need to acquire cond.L here to be sure that the Broadcast // below won't occur before the call to Wait, which would result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:24:28 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/testing/v1beta1/kms_plugin_mock.go
t.Fatalf("failed to start KMS plugin: err: %v", err) } return result } // waitForBase64PluginToBeUp waits until the plugin is ready to serve requests. func waitForBase64PluginToBeUp(plugin *Base64Plugin) error { var gRPCErr error pollErr := wait.PollImmediate(1*time.Second, wait.ForeverTestTimeout, func() (bool, error) { _, gRPCErr = plugin.Encrypt(context.Background(), &kmsapi.EncryptRequest{Plain: []byte("foo")})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 05:36:41 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/kubelet/eviction/threshold_notifier_linux.go
return } eventCh <- struct{}{} } } // wait waits up to notifierRefreshInterval for an event on the Epoll FD for the // eventfd we are concerned about. It returns an error if one occurs, and true // if the consumer should read from the eventfd. func wait(epfd, eventfd int, timeout time.Duration) (bool, error) { events := make([]unix.EpollEvent, numFdEvents+1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 01 21:59:54 UTC 2022 - 5.8K bytes - Viewed (0) -
src/os/wait6_dragonfly.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package os import ( "syscall" "unsafe" ) const _P_PID = 0 func wait6(idtype, id, options int) (status int, errno syscall.Errno) { var status32 int32 // C.int _, _, errno = syscall.Syscall6(syscall.SYS_WAIT6, uintptr(idtype), uintptr(id), uintptr(unsafe.Pointer(&status32)), uintptr(options), 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 21:25:45 UTC 2022 - 496 bytes - Viewed (0)