TODO(itodorov) - zos: revisit when Woz compiler is available. */
| 163 | #ifdef __MVS__ |
| 164 | /* TODO(itodorov) - zos: revisit when Woz compiler is available. */ |
| 165 | __attribute__((destructor)) |
| 166 | #endif |
| 167 | void uv__threadpool_cleanup(void) { |
| 168 | unsigned int i; |
| 169 | |
| 170 | if (nthreads == 0) |
| 171 | return; |
| 172 | |
| 173 | #ifndef __MVS__ |
| 174 | /* TODO(gabylb) - zos: revisit when Woz compiler is available. */ |
| 175 | post(&exit_message, UV__WORK_CPU); |
| 176 | #endif |
| 177 | |
| 178 | for (i = 0; i < nthreads; i++) |
| 179 | if (uv_thread_join(threads + i)) |
| 180 | abort(); |
| 181 | |
| 182 | if (threads != default_threads) |
| 183 | uv__free(threads); |
| 184 | |
| 185 | uv_mutex_destroy(&mutex); |
| 186 | uv_cond_destroy(&cond); |
| 187 | |
| 188 | threads = NULL; |
| 189 | nthreads = 0; |
| 190 | } |
| 191 | |
| 192 | |
| 193 | static void init_threads(void) { |
no test coverage detected