Fix bug with name of sleep function

This commit is contained in:
Andrey 2015-11-17 21:45:52 +03:00
parent e81a11dd7e
commit 3a6be65a20

View File

@ -200,7 +200,12 @@ utils::TCPSocket AllreduceBase::ConnectTracker(void) const {
utils::Socket::Error("Connect");
} else {
fprintf(stderr, "retry connect to ip(retry time %d): [%s]\n", retry, tracker_uri.c_str());
#ifdef _MSC_VER
Sleep(1);
#else
sleep(1);
#endif
continue;
}
}