提交 f7e48138 编写于 作者: D dongdaxiang

add WIN32 for rand_r and usleep

test=develop
上级 cedbc161
......@@ -341,6 +341,7 @@ void InMemoryDataFeed<T>::LocalShuffle() {
template <typename T>
void InMemoryDataFeed<T>::GlobalShuffle() {
#ifdef _LINUX
VLOG(3) << "GlobalShuffle() begin, thread_id=" << thread_id_;
auto fleet_ptr = FleetWrapper::GetInstance();
std::vector<std::vector<T*>> send_vec(trainer_num_);
......@@ -387,6 +388,7 @@ void InMemoryDataFeed<T>::GlobalShuffle() {
t.wait();
}
VLOG(3) << "GlobalShuffle() end, thread_id=" << thread_id_;
#endif
}
template <typename T>
......
......@@ -105,7 +105,9 @@ void PullDenseWorker::Run() {
if (pull_dense_status_.size() != 0) {
Wait(&pull_dense_status_);
}
#ifndef _WIN32
usleep(sleep_time_ms_ * 1000);
#endif
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册