/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/messagebus/handler_impl.h
23 строки
655 B
ilnurkh
Y_VERIFY->Y_ABORT_UNLESS at ^l
10 окт 2023, 00:46
10 окт 2023, 00:46
74b41fa
Код
Авторство
О чём код?
#pragma once #include "handler.h" #include "local_flags.h" #include "session.h" namespace NBus { template <typename U /* <: TBusMessage */> EMessageStatus TOnMessageContext::SendReplyAutoPtr(TAutoPtr<U>& response) { return Session->SendReplyAutoPtr(Ident, response); } inline EMessageStatus TOnMessageContext::SendReplyMove(TBusMessageAutoPtr response) { return SendReplyAutoPtr(response); } inline void TOnMessageContext::AckMessage(TBusIdentity& ident) { Y_ABORT_UNLESS(Ident.LocalFlags == NPrivate::MESSAGE_IN_WORK); Y_ABORT_UNLESS(ident.LocalFlags == 0); Ident.Swap(ident); } }