Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,332 for Handles (2.71 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/audit_test.go

    	for tcName, tc := range testCases {
    		var handler Interface = fakeHandler{tc.admit, tc.admitAnnotations, tc.validate, tc.validateAnnotations, tc.handles}
    		ctx := audit.WithAuditContext(context.Background())
    		ac := audit.AuditContextFrom(ctx)
    		ae := &ac.Event
    		ae.Level = auditinternal.LevelMetadata
    		auditHandler := WithAudit(handler)
    		a := attributes()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/testing/helpers.go

    		}
    	}
    	return nil
    }
    
    // Handles will return true if any of the admission andler handlers handle the given operation.
    func (r *reinvoker) Handles(operation admission.Operation) bool {
    	r.t.Helper()
    	return r.admission.Handles(operation)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/runtime/cgo/handle.go

    //
    // The method panics if the handle is invalid.
    func (h Handle) Value() any {
    	v, ok := handles.Load(uintptr(h))
    	if !ok {
    		panic("runtime/cgo: misuse of an invalid Handle")
    	}
    	return v
    }
    
    // Delete invalidates a handle. This method should only be called once
    // the program no longer needs to pass the handle to C and the C code
    // no longer has a copy of the handle value.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. pkg/kube/controllers/queue_test.go

    )
    
    func TestQueue(t *testing.T) {
    	handles := atomic.NewInt32(0)
    	q := NewQueue("custom", WithReconciler(func(key types.NamespacedName) error {
    		handles.Inc()
    		return nil
    	}))
    	q.Add(types.NamespacedName{Name: "something"})
    	stop := make(chan struct{})
    	go q.Run(stop)
    	retry.UntilOrFail(t, q.HasSynced, retry.Delay(time.Microsecond))
    	assert.Equal(t, handles.Load(), 1)
    	q.Add(types.NamespacedName{Name: "something else"})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 15 16:18:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/unique/handle_bench_test.go

    }
    
    func BenchmarkMakeManyMany(b *testing.B) {
    	benchmarkMake(b, testDataLarge[:])
    }
    
    func benchmarkMake(b *testing.B, testData []string) {
    	handles := make([]Handle[string], 0, len(testData))
    	for i := range testData {
    		handles = append(handles, Make(testData[i]))
    	}
    
    	b.ReportAllocs()
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		i := 0
    		for pb.Next() {
    			_ = Make(testData[i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyAnnotationHandler.java

    import java.lang.annotation.Annotation;
    
    /**
     * Handles validation, dependency handling, and skipping for a property marked with a given annotation.
     *
     * <p>Each handler must be registered as a global service.</p>
     */
    @ServiceScope(Scope.Global.class)
    public interface PropertyAnnotationHandler {
        /**
         * The annotation type which this handler is responsible for.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

       (IsConstTensor $filter),
       (IsInt32ElementType $conv),
       (HasStaticShapeConstraint $filter),
       (HasStaticShapeAtDimsConstraint<"3"> $input)],
      [], (addBenefit 10)>;
    
    // Same as ConvertTFConv2DToXLAConvOp but handles the case where input zero
    // point is dynaically calculated so not a constant.
    def ConvertTFConv2DToXLAConvOpDynamicRange : Pat<
      (TF_Conv2DOp:$conv
        (TF_SubOp:$input (TF_CastOp $input_i8, $truncate0), $input_zp),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  8. src/unique/handle.go

    	"internal/weak"
    	"runtime"
    	"sync"
    	_ "unsafe"
    )
    
    // Handle is a globally unique identity for some value of type T.
    //
    // Two handles compare equal exactly if the two values used to create the handles
    // would have also compared equal. The comparison of two handles is trivial and
    // typically much more efficient than comparing the values used to create them.
    type Handle[T comparable] struct {
    	value *T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. platforms/software/version-control/src/test/groovy/org/gradle/vcs/git/internal/DefaultGitVersionControlSpecSpec.groovy

        GitVersionControlSpec spec = new DefaultGitVersionControlSpec()
    
        def 'handles file urls'() {
            given:
            spec.url = new URI("file:/tmp/repos/foo")
    
            expect:
            spec.repoName == 'foo'
            spec.uniqueId == 'git-repo:file:/tmp/repos/foo'
            spec.displayName == 'Git repository at file:/tmp/repos/foo'
        }
    
        def 'handles urls which do not end in .git'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ResultHandler.java

     * limitations under the License.
     */
    package org.gradle.tooling;
    
    /**
     * A handler for an asynchronous operation which returns an object of type T.
     *
     * @param <T> The result type.
     * @since 1.0-milestone-3
     */
    public interface ResultHandler<T> {
    
        /**
         * Handles successful completion of the operation.
         *
         * @param result the result
         * @since 1.0-milestone-3
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top