181 |
|
int |
182 |
|
RadSimulManager::SetThreadCount(int nt) |
183 |
|
{ |
184 |
< |
if (!Ready()) |
185 |
< |
return 0; |
184 |
> |
if (!Ready()) return 0; |
185 |
|
|
186 |
|
if (nt <= 0) nt = castonly ? 1 : GetNCores(); |
187 |
|
|
199 |
|
int |
200 |
|
RadSimulManager::ProcessRay(RAY *r) |
201 |
|
{ |
202 |
< |
if (!Ready()) return false; |
202 |
> |
if (!Ready()) return -1; |
203 |
|
|
204 |
|
if (!ray_pnprocs) { // single-threaded mode? |
205 |
|
samplendx++; |
348 |
|
int nqueued = 0; |
349 |
|
RAY res; |
350 |
|
|
351 |
< |
if (!Ready()) |
353 |
< |
return -1; |
351 |
> |
if (!Ready()) return -1; |
352 |
|
|
353 |
|
if (castonly && !cookedCall) |
354 |
|
error(INTERNAL, "EnqueueBundle() called in castonly mode without cookedCall"); |