| 222 | |
| 223 | template<class Jobs, class RetType> |
| 224 | forceinline void |
| 225 | RunJobs<Jobs,RetType>::Master::stop(RetType r, int i) { |
| 226 | m.acquire(); |
| 227 | if (!stopped()) { |
| 228 | sres=r; sidx = i; |
| 229 | } |
| 230 | rs.push(r); |
| 231 | e.signal(); |
| 232 | m.release(); |
| 233 | } |
| 234 | |
| 235 | template<class Jobs, class RetType> |
| 236 | void |