shm: Throw RefCountBadAlloc if insufficient space in the ref count segment

This commit is contained in:
Alexey Rybalchenko
2023-11-15 10:10:42 +01:00
parent 961eca5276
commit 424e22b41a
2 changed files with 14 additions and 1 deletions

View File

@@ -76,6 +76,11 @@ struct MessageBadAlloc : std::runtime_error
using std::runtime_error::runtime_error;
};
struct RefCountBadAlloc : std::runtime_error
{
using std::runtime_error::runtime_error;
};
} // namespace fair::mq
using fairmq_free_fn [[deprecated("Use fair::mq::FreeFn")]] = fair::mq::FreeFn;