| # | Line 105 | Line 105 | class RtraceSimulManager : public RadSimulManager { (p | |
|---|---|---|
| 105 | int SetThreadCount(int nt = 0) { | |
| 106 | if (nt <= 0) nt = castonly ? 1 : GetNCores(); | |
| 107 | if (nt == NThreads()) return nt; | |
| 108 | < | if (FlushQueue() < 0) return 0; |
| 108 | > | if (nt < NThreads() && FlushQueue() < 0) return 0; |
| 109 | return RadSimulManager::SetThreadCount(nt); | |
| 110 | } | |
| 111 | /// Add ray bundle to queue w/ optional 1st ray ID | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |