| 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")); |
| 684 | } |
| 685 | |
| 686 | bool IThreadPool::AddAndOwn(THolder<IObjectInQueue> obj) { |
| 687 | auto owner = MakeHolder<TOwnedObjectInQueue>(std::move(obj)); |
no test coverage detected