MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / ReadThread

Method ReadThread

paddle/fluid/framework/data_feed.cc:317–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316template <typename T>
317void PrivateQueueDataFeed<T>::ReadThread() {
318#ifdef _LINUX
319 VLOG(4) << "entering PrivateQueueDataFeed<T>::ReadThread()";
320 std::string filename;
321 while (PickOneFile(&filename)) {
322 int err_no = 0;
323 fp_ = fs_open_read(filename, &err_no, pipe_command_, true);
324 __fsetlocking(&*fp_, FSETLOCKING_BYCALLER);
325 T instance;
326 while (ParseOneInstanceFromPipe(&instance)) {
327 queue_->Put(instance);
328 }
329 }
330 queue_->Close();
331#endif
332}
333
334template <typename T>
335int PrivateQueueDataFeed<T>::Next() {

Callers

nothing calls this directly

Calls 2

fs_open_readFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected