Permalink
Browse files

Merge pull request #1 from mopemope/master

timeout does not occur, when the first call "picoev_loop_once"
  • Loading branch information...
2 parents 6ed894e + f763092 commit 09804073160fb9d7073c656544e640544254e5fe @kazuho 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 0980407

Please sign in to comment.