Multithreaded Programming Guide

Return Values

Returns a zero when it completes successfully. Any other returned value indicates that an error occurred. When any of the following conditions are detected, thr_setconcurrency() fails and returns the corresponding value.


The specified concurrency level would cause a system resource to be exceeded.


The value for new_level is negative.