CloseTimeout releases event and thread handles.
()
| 112 | |
| 113 | // CloseTimeout releases event and thread handles. |
| 114 | func 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 |
no test coverage detected