We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the example:
percentage = downloaded*100.0/size; async.data = (void*) &percentage; uv_async_send(&async);
Multiple problems:
uv_async_send()
percentage
There's a sleep(1) right after so (2) is not super likely but it's still a bad example.
sleep(1)
The text was updated successfully, but these errors were encountered:
You want is an example of async use? Or a different one from this one
Sorry, something went wrong.
No branches or pull requests
From the example:
Multiple problems:
uv_async_send()
is not a memory barrierpercentage
goes out of scope when the thread exits, which can happen before the async callback runsThere's a
sleep(1)
right after so (2) is not super likely but it's still a bad example.The text was updated successfully, but these errors were encountered: