| 471 | } |
| 472 | |
| 473 | void |
| 474 | SDL_WaitThread(SDL_Thread * thread, int *status) |
| 475 | { |
| 476 | if (thread) { |
| 477 | SDL_SYS_WaitThread(thread); |
| 478 | if (status) { |
| 479 | *status = thread->status; |
| 480 | } |
| 481 | if (thread->name) { |
| 482 | SDL_free(thread->name); |
| 483 | } |
| 484 | SDL_free(thread); |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | void |
| 489 | SDL_DetachThread(SDL_Thread * thread) |