Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,516 for caller1 (0.19 sec)

  1. src/runtime/stack_test.go

    	useStackPtrs(n-1, b)
    }
    
    type structWithMethod struct{}
    
    func (s structWithMethod) caller() string {
    	_, file, line, ok := Caller(1)
    	if !ok {
    		panic("Caller failed")
    	}
    	return fmt.Sprintf("%s:%d", file, line)
    }
    
    func (s structWithMethod) callers() []uintptr {
    	pc := make([]uintptr, 16)
    	return pc[:Callers(0, pc)]
    }
    
    func (s structWithMethod) stack() string {
    	buf := make([]byte, 4<<10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. src/log/slog/logger.go

    	if !l.Enabled(ctx, level) {
    		return
    	}
    	var pc uintptr
    	if !internal.IgnorePC {
    		var pcs [1]uintptr
    		// skip [runtime.Callers, this function, this function's caller]
    		runtime.Callers(3, pcs[:])
    		pc = pcs[0]
    	}
    	r := NewRecord(time.Now(), level, msg, pc)
    	r.AddAttrs(attrs...)
    	if ctx == nil {
    		ctx = context.Background()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 18:26:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/io/ioutil/tempfile.go

    // for temporary files (see [os.TempDir]).
    // Multiple programs calling TempFile simultaneously
    // will not choose the same file. The caller can use f.Name()
    // to find the pathname of the file. It is the caller's responsibility
    // to remove the file when no longer needed.
    //
    // Deprecated: As of Go 1.17, this function simply calls [os.CreateTemp].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. security/pkg/server/ca/server.go

    ) {
    	s.monitoring.CSR.Increment()
    	caller, err := security.Authenticate(ctx, s.Authenticators)
    	if caller == nil || err != nil {
    		s.monitoring.AuthnError.Increment()
    		return nil, status.Error(codes.Unauthenticated, "request authenticate failure")
    	}
    
    	serverCaLog := serverCaLog.WithLabels("client", security.GetConnectionAddress(ctx))
    	// By default, we will use the callers identity for the certificate
    	sans := caller.Identities
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Call.kt

       *
       * To avoid leaking resources callers should close the [Response] which in turn will close the
       * underlying [ResponseBody].
       *
       * ```java
       * // ensure the response (and underlying response body) is closed
       * try (Response response = client.newCall(request).execute()) {
       *   ...
       * }
       * ```
       *
       * The caller may read the response body with the response's [Response.body] method. To avoid
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. utils/utils.go

    	}
    	return filepath.ToSlash(s) + "/"
    }
    
    // FileWithLineNum return the file name and line number of the current file
    func FileWithLineNum() string {
    	pcs := [13]uintptr{}
    	// the third caller usually from gorm internal
    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/io_ops.cc

    //   read V1 might be deprecated and eventually removed.
    //
    //   By default, restores the named tensors in full.  If the caller wishes to
    //   restore specific slices of stored tensors, "shape_and_slices" should be
    //   non-empty strings and correspondingly well-formed.
    //
    //   Callers must ensure all the named tensors are indeed stored in the
    //   checkpoint.
    Status RestoreV2(AbstractContext* ctx, AbstractTensorHandle* const prefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/lockedfile/internal/filelock/filelock.go

    //
    // Closing the file may or may not release the lock promptly. Callers should
    // ensure that Unlock is always called if RLock succeeds.
    func RLock(f File) error {
    	return lock(f, readLock)
    }
    
    // Unlock removes an advisory lock placed on f by this process.
    //
    // The caller must not attempt to unlock a file that is not locked.
    func Unlock(f File) error {
    	return unlock(f)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. src/runtime/traceback.go

    	}
    	print("\n")
    }
    
    // callers should be an internal detail,
    // (and is almost identical to Callers),
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/phuslu/log
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname callers
    func callers(skip int, pcbuf []uintptr) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        if (!symbol_uses.has_value()) {
          return failure();
        }
        for (auto use : *symbol_uses) {
          Operation* caller = use.getUser();
          bool changed = false;
          rewriter.startOpModification(caller);
          for (auto [result, type] :
               llvm::zip(caller->getResults(), return_types)) {
            if (result.getType() != type) {
              result.setType(type);
              changed = true;
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top