mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-08 09:59:07 +00:00
add noreturn flag for monitor
This commit is contained in:
parent
0b9720c222
commit
b577c10d25
1 changed files with 2 additions and 3 deletions
|
@ -2330,13 +2330,12 @@ class monitor_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
[[noreturn]] void monitor(socket_t &socket, std::string const &addr, int events = ZMQ_EVENT_ALL)
|
||||||
monitor(socket_t &socket, std::string const &addr, int events = ZMQ_EVENT_ALL)
|
|
||||||
{
|
{
|
||||||
monitor(socket, addr.c_str(), events);
|
monitor(socket, addr.c_str(), events);
|
||||||
}
|
}
|
||||||
|
|
||||||
void monitor(socket_t &socket, const char *addr_, int events = ZMQ_EVENT_ALL)
|
[[noreturn]] void monitor(socket_t &socket, const char *addr_, int events = ZMQ_EVENT_ALL)
|
||||||
{
|
{
|
||||||
init(socket, addr_, events);
|
init(socket, addr_, events);
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue