Skip to content
Browse files

Set initial timer value

  • Loading branch information...
1 parent 6ed894e commit f7630920ad5a4a261c25be908a426334006653da @mopemope mopemope committed Aug 23, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 picoev_epoll.c
  2. +1 −0 picoev_kqueue.c
  3. +1 −0 picoev_select.c
View
1 picoev_epoll.c
@@ -65,6 +65,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
return NULL;
}
+ loop->loop.now = time(NULL);
return &loop->loop;
}
View
1 picoev_kqueue.c
@@ -116,6 +116,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
}
loop->changed_fds = -1;
+ loop->loop.now = time(NULL);
return &loop->loop;
}
View
1 picoev_select.c
@@ -101,6 +101,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
return NULL;
}
+ loop->now = time(NULL);
return loop;
}

0 comments on commit f763092

Please sign in to comment.
Something went wrong with that request. Please try again.