Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for lM (4.96 sec)

  1. internal/lsync/lrwmutex.go

    		if lm.isWriteLock && lm.ref == 1 {
    			lm.ref = 0
    			lm.isWriteLock = false
    			unlocked = true
    		}
    	} else {
    		if !lm.isWriteLock {
    			if lm.ref > 0 {
    				lm.ref--
    				unlocked = true
    			}
    		}
    	}
    
    	return unlocked
    }
    
    // ForceUnlock will forcefully clear a write or read lock.
    func (lm *LRWMutex) ForceUnlock() {
    	lm.mu.Lock()
    	defer lm.mu.Unlock()
    
    	lm.ref = 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/data_test.go

    	"internal/buildcfg"
    	"testing"
    )
    
    func setUpContext(arch *sys.Arch, iself bool, ht objabi.HeadType, bm, lm string) *Link {
    	ctxt := linknew(arch)
    	ctxt.HeadType = ht
    	er := loader.ErrorReporter{}
    	ctxt.loader = loader.NewLoader(0, &er)
    	ctxt.BuildMode.Set(bm)
    	ctxt.LinkMode.Set(lm)
    	ctxt.IsELF = iself
    	ctxt.mustSetHeadType()
    	ctxt.setArchSyms()
    	return ctxt
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 19:20:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. test/typeparam/issue48962.dir/b.go

    	lP[P any]               *P
    	lM[K comparable, V any] map[K]V
    )
    
    // local cycles
    type (
    	A  lA[A]            // ERROR "invalid recursive type"
    	S  lS[S]            // ERROR "invalid recursive type"
    	P  lP[P]            // ok (indirection through lP)
    	M1 lM[int, M1]      // ok (indirection through lM)
    	M2 lM[lA[byte], M2] // ok (indirection through lM)
    
    	A2 lA[lS[lP[A2]]] // ok (indirection through lP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. pkg/api/testing/meta_test.go

    				}
    				lm, isLM := obj.(meta.ListMetaAccessor)
    				om, isOM := obj.(metav1.ObjectMetaAccessor)
    				switch {
    				case isLM && isOM:
    					t.Errorf("%v (%v) implements ListMetaAccessor and ObjectMetaAccessor", gv.WithKind(kind), knownType)
    					continue
    				case isLM:
    					m := lm.GetListMeta()
    					if m == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 14 10:11:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. cmd/data-scanner-metric.go

    		m.LastMinute.ILM = make(map[string]madmin.TimedAction, len(m.LifeTimeILM))
    		for i := lifecycle.NoneAction + 1; i < lifecycle.ActionCount; i++ {
    			lm := p.lastMinuteActions(i)
    			if lm.N > 0 {
    				m.LastMinute.ILM[i.String()] = madmin.TimedAction{Count: uint64(lm.N), AccTime: uint64(lm.Total)}
    			}
    		}
    		if len(m.LastMinute.ILM) == 0 {
    			m.LastMinute.ILM = nil
    		}
    	}
    	return m
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue8756/issue8756.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue8756
    
    /*
    #cgo !darwin LDFLAGS: -lm
    #include <math.h>
    */
    import "C"
    
    func Pow() {
    	C.pow(1, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 269 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue8756.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    /*
    #cgo !darwin LDFLAGS: -lm
    #include <math.h>
    */
    import "C"
    import (
    	"testing"
    
    	"cmd/cgo/internal/test/issue8756"
    )
    
    func test8756(t *testing.T) {
    	issue8756.Pow()
    	C.pow(1, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 359 bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    		sparse: map[uint64]*Location{},
    	}
    }
    
    func (lm locationIDMap) get(id uint64) *Location {
    	if id < uint64(len(lm.dense)) {
    		return lm.dense[int(id)]
    	}
    	return lm.sparse[id]
    }
    
    func (lm locationIDMap) set(id uint64, loc *Location) {
    	if id < uint64(len(lm.dense)) {
    		lm.dense[id] = loc
    		return
    	}
    	lm.sparse[id] = loc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. cmd/os-instrumented.go

    		m.LifeTimeOps = nil
    	}
    
    	m.LastMinute.Operations = make(map[string]madmin.TimedAction, osMetricLast)
    	for i := osMetric(0); i < osMetricLast; i++ {
    		lm := o.latency[i].total()
    		if lm.N > 0 {
    			m.LastMinute.Operations[i.String()] = lm.asTimedAction()
    		}
    	}
    	if len(m.LastMinute.Operations) == 0 {
    		m.LastMinute.Operations = nil
    	}
    
    	return m
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. operator/pkg/tpath/tree.go

    			// non-leaf list, expect to match item by key:value.
    			if lm, ok := le.(map[any]any); ok {
    				k, v, err := util.PathKV(pe)
    				if err != nil {
    					return nil, false, fmt.Errorf("path %s: %s", fullPath, err)
    				}
    				if stringsEqual(lm[k], v) {
    					scope.Debugf("found matching kv %v:%v", k, v)
    					nn := &PathContext{
    						Parent: nc,
    						Node:   lm,
    					}
    					nc.KeyToChild = idx
    					nn.KeyToChild = k
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top