omp_get_num_threads

目的

この関数が呼び出された並列領域を実行しているチームに現在存在するスレッドの数を戻します。

プロトタイプ

int omp_get_num_threads (void);