Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson
Created August 4, 2014 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdickinson/edb96ee141064b1875c8 to your computer and use it in GitHub Desktop.
Save chrisdickinson/edb96ee141064b1875c8 to your computer and use it in GitHub Desktop.
diff --git a/deps/uv/src/unix/timer.c b/deps/uv/src/unix/timer.c
index 57d32f5..1835691 100644
--- a/deps/uv/src/unix/timer.c
+++ b/deps/uv/src/unix/timer.c
@@ -135,6 +135,9 @@ int uv__next_timeout(const uv_loop_t* loop) {
void uv__run_timers(uv_loop_t* loop) {
+ static int onoff = 0;
+
+ onoff = !onoff;
uv_timer_t* handle;
while ((handle = RB_MIN(uv__timers, &loop->timer_handles))) {
@@ -144,6 +147,7 @@ void uv__run_timers(uv_loop_t* loop) {
uv_timer_stop(handle);
uv_timer_again(handle);
handle->timer_cb(handle, 0);
+ fprintf(stderr, onoff ? "." : "!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment