MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / CloseTimeout

Function CloseTimeout

pkg/handle/timeout.go:114–121  ·  view source on GitHub ↗

CloseTimeout releases event and thread handles.

()

Source from the content-addressed store, hash-verified

112
113// CloseTimeout releases event and thread handles.
114func CloseTimeout() error {
115 _ = windows.CloseHandle(tmt.ini)
116 _ = windows.CloseHandle(tmt.done)
117 if tmt.thread != 0 {
118 return sys.TerminateThread(tmt.thread, 0)
119 }
120 return nil
121}
122
123// timeoutFn waits for the initial event signalization and then
124// pulls the handle identifier from the input channel. With handle

Callers 1

ShutdownMethod · 0.92

Calls 1

TerminateThreadFunction · 0.92

Tested by

no test coverage detected