| 61 | |
| 62 | #ifdef RAR_SMP |
| 63 | void Unpack::SetThreads(uint Threads) |
| 64 | { |
| 65 | // More than 8 threads are unlikely to provide noticeable gain |
| 66 | // for unpacking, but would use the additional memory. |
| 67 | MaxUserThreads=Min(Threads,8); |
| 68 | UnpThreadPool=new ThreadPool(MaxUserThreads); |
| 69 | } |
| 70 | #endif |
| 71 | |
| 72 |