| 300 | |
| 301 | template<class Jobs, class RetType> |
| 302 | inline bool |
| 303 | RunJobs<Jobs,RetType>::Master::needthread(void) { |
| 304 | bool n; |
| 305 | m.acquire(); |
| 306 | while (!rs.empty()) |
| 307 | rs.pop().~RetType(); |
| 308 | sidx = 0; |
| 309 | n = !done(); |
| 310 | m.release(); |
| 311 | return n; |
| 312 | } |
| 313 | |
| 314 | template<class Jobs, class RetType> |
| 315 | inline |