- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 170 for hook1 (1.28 sec)
-
src/internal/runtime/exithook/hooks.go
runGoid atomic.Uint64 hooks []Hook running bool // runtime sets these for us Gosched func() Goid func() uint64 Throw func(string) ) // Add adds a new exit hook. func Add(h Hook) { for !locked.CompareAndSwap(0, 1) { Gosched() } hooks = append(hooks, h) locked.Store(0) } // Run runs the exit hooks. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/coverage/cfile/hooks.go
// being tested, hence we do want to run exit hooks when the program // terminates. func InitHook(istest bool) { // Note: hooks are run in reverse registration order, so // register the counter data hook before the meta-data hook // (in the case where two hooks are needed). exithook.Add(exithook.Hook{F: emitCounterData, RunOnFailure: true}) if istest { exithook.Add(exithook.Hook{F: emitMetaData, RunOnFailure: true}) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 02:32:19 UTC 2024 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/hooks.go
return err } s.postStartHooks[name] = postStartHookEntry{hook: hook, originatingStack: string(debug.Stack()), done: done} return nil } // AddPostStartHookOrDie allows you to add a PostStartHook, but dies on failure func (s *GenericAPIServer) AddPostStartHookOrDie(name string, hook PostStartHookFunc) { if err := s.AddPostStartHook(name, hook); err != nil { klog.Fatalf("Error registering PostStartHook %q: %v", name, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/interfaces.go
package generic import ( "context" "k8s.io/apiserver/pkg/admission" ) // Hook represents a dynamic admission hook. The hook may be a webhook or a // policy. For webhook, the Hook may describe how to contact the endpoint, expected // cert, etc. For policies, the hook may describe a compiled policy-binding pair. type Hook interface { // All hooks are expected to contain zero or more match conditions, object
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 2.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/shutdown/ShutdownHooks.java
private static final Logger LOGGER = Logging.getLogger(ShutdownHooks.class); private static final Map<Runnable, Thread> HOOKS = new ConcurrentHashMap<Runnable, Thread>(); public static void addShutdownHook(Runnable shutdownHook) { Thread thread = new Thread(shutdownHook, "gradle-shutdown-hook"); HOOKS.put(shutdownHook, thread); Runtime.getRuntime().addShutdownHook(thread); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 12 05:56:18 UTC 2021 - 2K bytes - Viewed (0) -
src/net/hook.go
Andy Pan <******@****.***> 1699977411 +0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 934 bytes - Viewed (0) -
test/fixedbugs/issue34503.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 25 18:10:57 UTC 2019 - 294 bytes - Viewed (0) -
istioctl/pkg/tag/revision.go
} for _, hook := range webhooks { rev := renderWithDefault(hook.GetLabels()[label.IoIstioRev.Name], DefaultRevisionName) tagLabel := hook.GetLabels()[IstioTagLabel] ri, revPresent := revisions[rev] if revPresent { if tagLabel != "" { ri.Webhooks = append(ri.Webhooks, &MutatingWebhookConfigInfo{ Name: hook.Name, Revision: rev, Tag: tagLabel, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 28 13:16:05 UTC 2023 - 4.5K bytes - Viewed (0) -
src/net/http/httptrace/trace.go
return trace } // WithClientTrace returns a new context based on the provided parent // ctx. HTTP client requests made with the returned context will use // the provided trace hooks, in addition to any previous hooks // registered with ctx. Any hooks defined in the provided trace will // be called first. func WithClientTrace(ctx context.Context, trace *ClientTrace) context.Context { if trace == nil { panic("nil trace") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/os/writeto_linux_test.go
t.Fatalf("wrong source file descriptor: got %d, want %d", hook.srcfd, src.Fd()) } sc, ok := dst.(syscall.Conn) if !ok { t.Fatalf("destination is not a syscall.Conn") } rc, err := sc.SyscallConn() if err != nil { t.Fatalf("destination SyscallConn error: %v", err) } if err = rc.Control(func(fd uintptr) { if hook.called && hook.dstfd != int(fd) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4K bytes - Viewed (0)