| 100 | } |
| 101 | |
| 102 | void threadDetach(Thread thread) |
| 103 | { |
| 104 | if (!thread || thread->detached) |
| 105 | return; |
| 106 | if (thread->finished) |
| 107 | { |
| 108 | threadFree(thread); |
| 109 | return; |
| 110 | } |
| 111 | thread->detached = true; |
| 112 | return; |
| 113 | } |
| 114 | |
| 115 | Thread threadGetCurrent(void) |
| 116 | { |
no test coverage detected