| 676 | } // namespace |
| 677 | |
| 678 | void IThreadPool::SafeAdd(IObjectInQueue* obj) { |
| 679 | Y_ENSURE_EX(Add(obj), TThreadPoolException() << TStringBuf("can not add object to queue")); |
| 680 | } |
| 681 | |
| 682 | void IThreadPool::SafeAddAndOwn(THolder<IObjectInQueue> obj) { |
| 683 | Y_ENSURE_EX(AddAndOwn(std::move(obj)), TThreadPoolException() << TStringBuf("can not add to queue and own")); |
no test coverage detected