Permalink
Browse files

Add some comments.

  • Loading branch information...
1 parent adc1827 commit bd0bde98505d7589e14e5c922f168d0e1a8107d6 @FooBarWidget FooBarWidget committed Aug 29, 2009
Showing with 4 additions and 0 deletions.
  1. +2 −0 ext/common/Timer.h
  2. +2 −0 ext/oxt/system_calls.cpp
View
@@ -63,6 +63,8 @@ class Timer {
* restart the timer.
*/
void start() {
+ // TODO: We really use should clock_gettime() and the monotonic
+ // clock whenever possible, instead of gettimeofday()...
gettimeofday(&startTime, NULL);
}
View
@@ -127,6 +127,8 @@ syscalls::bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) {
int
syscalls::connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen) {
int ret;
+ // FIXME: I don't think this is entirely correct.
+ // http://www.madore.org/~david/computers/connect-intr.html
CHECK_INTERRUPTION(
ret == -1,
ret = ::connect(sockfd, serv_addr, addrlen);

0 comments on commit bd0bde9

Please sign in to comment.