I'm using the APR thread pool (for portability) and I'm trying to get the threads exit codes, because I want to close the whole program (When there are specific error codes).
I noticed that there's no APR function that can access the threads individually from the pool, and there's no APR functions that "joins" the threads in the pool.
The question is, how can I wait on the thread pool and get the threads exit codes when at-least one of them is finished (Using the APR library)