src/include/OpenImageIO/parallel.h
// Fix up all the TBD parameters:
// * If no pool was specified, use the default pool.
// * If no max thread count was specified, use the pool size.
// * If the calling thread is itself in the pool and the recursive flag
//   was not turned on, just use one thread.
Fix up all the TBD parameters:
If no pool was specified, use the default pool.
If no max thread count was specified, use the pool size.
If the calling thread is itself in the pool and the recursive flag
was not turned on, just use one thread.
Fix up all the TBD parameters : If no pool was specified use the default pool . If no max thread count was specified use the pool size . If the calling thread is itself in the pool and the recursive flag was not turned on just use one thread .
void resolve () {
        if (pool == nullptr)
            pool = default_thread_pool();
        if (maxthreads <= 0)
            maxthreads = pool->size()+1;  
        if (!recursive && pool->is_worker())
            maxthreads = 1;
    }
void resolve ( ) { if ( pool == nullptr ) pool = default_thread_pool ( ) ; if ( maxthreads <= 0 ) maxthreads = pool -> size ( ) + 1 ; if ( ! recursive && pool -> is_worker ( ) ) maxthreads = 1 ; }
Fix up all the TBD parameters:
 If no pool was specified, use the default pool.
Fix up all the TBD parameters : If no pool was specified use the default pool .
// pool size + caller