|
|
|
@ -539,27 +539,15 @@ static void fd_shutdown(grpc_fd* fd, grpc_error* why) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void fd_notify_on_read(grpc_fd* fd, grpc_closure* closure) { |
|
|
|
|
if (closure != nullptr) { |
|
|
|
|
fd->read_closure->NotifyOn(closure); |
|
|
|
|
} else { |
|
|
|
|
fd->read_closure->SetReady(); |
|
|
|
|
} |
|
|
|
|
fd->read_closure->NotifyOn(closure); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void fd_notify_on_write(grpc_fd* fd, grpc_closure* closure) { |
|
|
|
|
if (closure != nullptr) { |
|
|
|
|
fd->write_closure->NotifyOn(closure); |
|
|
|
|
} else { |
|
|
|
|
fd->write_closure->SetReady(); |
|
|
|
|
} |
|
|
|
|
fd->write_closure->NotifyOn(closure); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void fd_notify_on_error(grpc_fd* fd, grpc_closure* closure) { |
|
|
|
|
if (closure != nullptr) { |
|
|
|
|
fd->error_closure->NotifyOn(closure); |
|
|
|
|
} else { |
|
|
|
|
fd->error_closure->SetReady(); |
|
|
|
|
} |
|
|
|
|
fd->error_closure->NotifyOn(closure); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
|