Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

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

Merged
tmcw merged 1 commit into
TryGhost:masterfrom
indutny:fix/race-in-async-h
Sep 22, 2016
Merged

async: remove racey uv_ref()/uv_unref()#705
tmcw merged 1 commit into
TryGhost:masterfrom
indutny:fix/race-in-async-h

Conversation

@indutny

@indutny indutny commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

indutny commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

You are drunk @coveralls :D

@tmcw

tmcw commented Sep 22, 2016

Copy link
Copy Markdown
Contributor

👍 beautiful, thank you @indutny !

@tmcw
tmcw merged commit cee778d into TryGhost:master Sep 22, 2016
@indutny

indutny commented Sep 22, 2016

Copy link
Copy Markdown
Contributor Author

ありがとうございます。

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants