const-ify handle argument to uv_is_closing()
This commit is contained in:
parent
fb6c9eef2a
commit
edb39b2499
@ -552,7 +552,7 @@ UV_EXTERN int uv_is_writable(uv_stream_t* handle);
|
|||||||
* and the arrival of the close callback, and cannot be used
|
* and the arrival of the close callback, and cannot be used
|
||||||
* to validate the handle.
|
* to validate the handle.
|
||||||
*/
|
*/
|
||||||
UV_EXTERN int uv_is_closing(uv_handle_t* handle);
|
UV_EXTERN int uv_is_closing(const uv_handle_t* handle);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -118,7 +118,7 @@ void uv_close(uv_handle_t* handle, uv_close_cb close_cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int uv_is_closing(uv_handle_t* handle) {
|
int uv_is_closing(const uv_handle_t* handle) {
|
||||||
return handle->flags & (UV_CLOSING | UV_CLOSED);
|
return handle->flags & (UV_CLOSING | UV_CLOSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -154,7 +154,7 @@ void uv_close(uv_handle_t* handle, uv_close_cb cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int uv_is_closing(uv_handle_t* handle) {
|
int uv_is_closing(const uv_handle_t* handle) {
|
||||||
return handle->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED);
|
return handle->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user