This repository has been archived by the owner on May 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: use EVRUN_ONCE in uv_run_once()
EVRUN_NOWAIT means "poll and don't block". Use EVRUN_ONCE instead, "wait for single event".
- Loading branch information
e8494dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@typester thanks!
e8494dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to have NOWAIT too (game engines would appreciate that, since they do not block at all and have to have a constant frame rate).
e8494dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, but I think
uv_run_once
is not suitable name for NOWAIT. It might beuv_poll
or whatever IMHOe8494dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is why I said 'we want to have that too' :)
uv_run_once_noblock?
e8494dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to @typester, I like uv_poll.