poll: instruct the linter on libuv callbacks
This commit is contained in:
parent
34d2b00441
commit
2b4a0f158b
@ -12,6 +12,7 @@ UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr<loop> ref
|
||||
UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr<loop> ref, os_socket_handle sock)
|
||||
: handle{token, std::move(ref)}, tag{SOCKET}, socket{sock} {}
|
||||
|
||||
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
|
||||
UVW_INLINE void poll_handle::start_callback(uv_poll_t *hndl, int status, int events) {
|
||||
if(poll_handle &poll = *(static_cast<poll_handle *>(hndl->data)); status) {
|
||||
poll.publish(error_event{status});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user