SObjectizer
5.5
|
Method so_5::rt::agent_t::limit_then_abort allow to specify message limit with very tough overlimit reaction – application abortion. But there was an inconvenience in limit_then_abort usage: it was hard to detect what message/signal caused the abortion. To simplify this task a new variant of limit_then_abort was introduced in v.5.5.8. This variant allows to set an action to be preformed before calling std::abort(). This action can be used, for example, for logging:
That variant of limit_then_abort can be used for messages (as in example abort) and for signals. But for signals pre-abort action must have different format: