Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for syncAt (0.14 sec)

  1. src/runtime/lock_sema.go

    		case locked:
    			// Wakeup happened so semaphore is available.
    			// Grab it to avoid getting out of sync.
    			gp.m.blocked = true
    			if semasleep(-1) < 0 {
    				throw("runtime: unable to acquire - semaphore out of sync")
    			}
    			gp.m.blocked = false
    			return true
    		default:
    			throw("runtime: unexpected waitm - semaphore out of sync")
    		}
    	}
    }
    
    func notetsleep(n *note, ns int64) bool {
    	gp := getg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. src/sync/mutex.go

    // Package sync provides basic synchronization primitives such as mutual
    // exclusion locks. Other than the [Once] and [WaitGroup] types, most are intended
    // for use by low-level library routines. Higher-level synchronization is
    // better done via channels and communication.
    //
    // Values containing the types defined in this package should not be copied.
    package sync
    
    import (
    	"internal/race"
    	"sync/atomic"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/iter-pull.go

    	"log"
    	"os"
    	"runtime/trace"
    	"sync"
    )
    
    func main() {
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    
    	// Try simple pull iteration.
    	i := pullRange(100)
    	for {
    		_, ok := i.next()
    		if !ok {
    			break
    		}
    	}
    
    	// Try bouncing the pull iterator between two goroutines.
    	var wg sync.WaitGroup
    	var iterChans [2]chan intIter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/testprog/futile-wakeup.go

    import (
    	"context"
    	"log"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    )
    
    func main() {
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8))
    	c0 := make(chan int, 1)
    	c1 := make(chan int, 1)
    	c2 := make(chan int, 1)
    	const procs = 2
    	var done sync.WaitGroup
    	done.Add(4 * procs)
    	for p := 0; p < procs; p++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. hack/tools/.gitignore

    /vendor/
    # avoid constant churn as this file is not kept in sync with the root
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 17:52:36 UTC 2024
    - 91 bytes
    - Viewed (0)
  6. pkg/scheduler/framework/runtime/waiting_pods_map.go

    limitations under the License.
    */
    
    package runtime
    
    import (
    	"fmt"
    	"sync"
    	"time"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    // waitingPodsMap a thread-safe map used to maintain pods waiting in the permit phase.
    type waitingPodsMap struct {
    	pods map[types.UID]*waitingPod
    	mu   sync.RWMutex
    }
    
    // NewWaitingPodsMap returns a new waitingPodsMap.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. cni/cmd/istio-cni/main.go

    		return err
    	}
    	defer func() {
    		// Log sync will send logs to install-cni container via UDS.
    		// We don't need a timeout here because underlying the log pkg already handles it.
    		// this may fail, but it should be safe to ignore according
    		// to https://github.com/uber-go/zap/issues/328
    		_ = log.Sync()
    	}()
    
    	// TODO: implement plugin version
    	funcs := skel.CNIFuncs{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. pkg/kubelet/util/swap/swap_util.go

    import (
    	"bytes"
    	"errors"
    	"os"
    	sysruntime "runtime"
    	"strings"
    	"sync"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/kubelet/userns/inuserns"
    	utilkernel "k8s.io/kubernetes/pkg/util/kernel"
    	"k8s.io/mount-utils"
    )
    
    var (
    	tmpfsNoswapOptionSupported        bool
    	tmpfsNoswapOptionAvailabilityOnce sync.Once
    	swapOn                            bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. pkg/kube/krt/fetch.go

    		collectionName: c.name(),
    		filter:         &filter{},
    	}
    	for _, o := range opts {
    		o(d)
    	}
    	// Important: register before we List(), so we cannot miss any events
    	h.registerDependency(d, c.Synced(), func(f erasedEventHandler) {
    		ff := func(o []Event[T], initialSync bool) {
    			f(slices.Map(o, castEvent[T, any]), initialSync)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. pkg/kubelet/config/sources.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package config implements the pod configuration readers.
    package config
    
    import (
    	"sync"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // SourcesReadyFn is function that returns true if the specified sources have been seen.
    type SourcesReadyFn func(sourcesSeen sets.Set[string]) bool
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top