Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Windows: use UV__ACTIVE to determine return value of uv_is_active

  • Loading branch information
piscisaureus committed May 15, 2012
1 parent 28a422b commit 0b7868bdb35ee0119c5fffc739eb38e57f0ec8a4
Showing with 1 addition and 13 deletions.
  1. +1 −13 src/win/handle.c
@@ -58,19 +58,7 @@ uv_handle_type uv_guess_handle(uv_file file) {


int uv_is_active(const uv_handle_t* handle) {
switch (handle->type) {
case UV_TIMER:
case UV_IDLE:
case UV_PREPARE:
case UV_CHECK:
return (handle->flags & UV_HANDLE_ACTIVE) ? 1 : 0;

case UV_POLL:
return ((uv_poll_t*) handle)->events != 0;

default:
return 1;
}
return (handle->flags & UV__ACTIVE) && !(handle->flags & UV_HANDLE_CLOSING);
}


0 comments on commit 0b7868b

Please sign in to comment.
You can’t perform that action at this time.