Skip to content

uv_async_send without coalescing #4384

Closed Answered by bnoordhuis
jim-king-2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Note that uv_async_send() won't let you send data; it's not a queue of any kind, it's just a "something happened" signal. Think of it as shorthand for uv_wake_up_event_loop_from_another_thread().

If you're asking for N calls = N callbacks behavior and nothing else, then I guess that could be implemented but it doesn't seem that useful because you still need to check what exactly happened and that's going to involve atomic variables or mutexes.

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jim-king-2000
Comment options

You must be logged in to vote
1 reply
@bnoordhuis
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants