Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Set initial timer value

  • Loading branch information...
commit f7630920ad5a4a261c25be908a426334006653da 1 parent 6ed894e
Yutaka Matsubara mopemope authored

Showing 3 changed files with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  picoev_epoll.c
  2. +1 0  picoev_kqueue.c
  3. +1 0  picoev_select.c
1  picoev_epoll.c
@@ -65,6 +65,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
65 65 return NULL;
66 66 }
67 67
  68 + loop->loop.now = time(NULL);
68 69 return &loop->loop;
69 70 }
70 71
1  picoev_kqueue.c
@@ -116,6 +116,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
116 116 }
117 117 loop->changed_fds = -1;
118 118
  119 + loop->loop.now = time(NULL);
119 120 return &loop->loop;
120 121 }
121 122
1  picoev_select.c
@@ -101,6 +101,7 @@ picoev_loop* picoev_create_loop(int max_timeout)
101 101 return NULL;
102 102 }
103 103
  104 + loop->now = time(NULL);
104 105 return loop;
105 106 }
106 107

0 comments on commit f763092

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