Exposing the turn of the event loop #373

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@seebees
Contributor
seebees commented Apr 8, 2012

I am proposing putting a counter on the event loop that will keep track of each "turn" and exposing this value so others can use it in magical ways. Primarily I want to expose this value in node. I will issue a pull and talk more there.

I also found that I needed to have a way to arbitrarily increment this counter to handle events like process.nextTick. I would prefer if that happend on the node side, but I'm not sure how that works out cleanly... and this was simple. Comments welcome.

I've written one test, which I'm not sure is sufficient, but I had trouble getting it to run automatically.

I have tested on OSX, and I will try and compile and test on windows tomorrow.

Oh, and suggestions on function names are welcome as well.

This is primarily implemented for node:3074

seebees added some commits Apr 8, 2012
@seebees seebees Implementing an externally available tick count
Each turn of the event loop should increment a counter.
edee69d
@seebees seebees test cc49e90
Contributor

Closing, sorry. The patch no longer applies.

@bnoordhuis bnoordhuis closed this Dec 28, 2012
@seebees seebees referenced this pull request in nodejs/node-v0.x-archive Mar 13, 2013
Closed

proccess.tick should the current turn of the event loop #3074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment