Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson chrisdickinson/diff.patch Secret
Created Aug 4, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.