| 121 | } |
| 122 | |
| 123 | void threadExit(int rc) |
| 124 | { |
| 125 | Thread t = threadGetCurrent(); |
| 126 | if (!t) |
| 127 | __panic(); |
| 128 | |
| 129 | t->finished = true; |
| 130 | if (t->detached) |
| 131 | threadFree(t); |
| 132 | else |
| 133 | t->rc = rc; |
| 134 | |
| 135 | svcExitThread(); |
| 136 | } |
no test coverage detected