enhance ability of embed with other event loop.#1651
Closed
churuxu wants to merge 1 commit into
Closed
Conversation
changes: 1. add UV_LOOP_TIMEOUT_OBSERVER for uv_loop_option. observer function call when backend timeout of uv loop changed. for interrupt your self event loop. 2. uv_backend_fd return iocp handle in windows. for call GetQueuedCompletionStatus your self. 3. add uv_insert_overlapped_result windows specific function. for pass result of GetQueuedCompletionStatus to uv loop.
Member
Author
|
they are not address my use case. |
Member
|
@churuxu I'm going to close this out. Can you open an issue if you want to discuss options on how to make embedding easier for you in a way that is backwards compatible? Cheers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
changes:
add UV_LOOP_TIMEOUT_OBSERVER for uv_loop_option.
observer function call when backend timeout of uv loop changed.
for interrupt your self event loop.
uv_backend_fd return iocp handle in windows.
for call GetQueuedCompletionStatus your self.
add uv_insert_overlapped_result windows specific function.
for pass result of GetQueuedCompletionStatus to uv loop.
Example case for win32 gui application:
in main thread just run default win32 message loop.
create a window to handle uv events in it's WndProc.
create a thread to poll iocp events.
in timeout observer function, interrupt GetQueuedCompletionStatus