Skip to content
New issue

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

async: remove racey uv_ref()/uv_unref() #705

Merged
merged 1 commit into from
Sep 22, 2016

Conversation

indutny
Copy link
Contributor

@indutny indutny commented Sep 6, 2016

uv_ref() can't be called from the non-event-loop thread. Furthermore,
it is not necessary in async.h, because open uv_async_t is already
holding the event loop from exiting.

See: #702

cc @jlongster

(NOTE: Tests for current master fail on my machine, so please check it with care!)

`uv_ref()` can't be called from the non-event-loop thread. Furthermore,
it is not necessary in `async.h`, because open `uv_async_t` is already
holding the event loop from exiting.

See: TryGhost#702
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 85.767% when pulling 553c6ea on indutny:fix/race-in-async-h into 7322ea7 on mapbox:master.

@indutny
Copy link
Contributor Author

indutny commented Sep 6, 2016

You are drunk @coveralls :D

@tmcw
Copy link
Contributor

tmcw commented Sep 22, 2016

👍 beautiful, thank you @indutny !

@tmcw tmcw merged commit cee778d into TryGhost:master Sep 22, 2016
@indutny
Copy link
Contributor Author

indutny commented Sep 22, 2016

ありがとうございます。

@indutny indutny deleted the fix/race-in-async-h branch September 22, 2016 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants