SetExitStatus provide thread safe set exit status func.
(n int)
| 133 | |
| 134 | // SetExitStatus provide thread safe set exit status func. |
| 135 | func SetExitStatus(n int) { |
| 136 | exitMu.Lock() |
| 137 | if exitStatus < n { |
| 138 | exitStatus = n |
| 139 | } |
| 140 | exitMu.Unlock() |
| 141 | } |
no outgoing calls
no test coverage detected