| 465 | } |
| 466 | |
| 467 | inline bool Sender::PushFree(const Resource& r) { |
| 468 | if (_nfree < 2) { |
| 469 | _free_resources[_nfree++] = r; |
| 470 | if (_finished && _nfree == _nalloc) { |
| 471 | Clear(); |
| 472 | return false; |
| 473 | } |
| 474 | return true; |
| 475 | } else { |
| 476 | CHECK(false) << "Impossible!"; |
| 477 | return false; |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | inline const Controller* Sender::SubController(int index) const { |
| 482 | if (index != 0) { |