mxnet
Classes | Namespaces
threadediter.h File Reference

thread backed iterator that can be used to implement general thread-based pipeline such as prefetch and pre-computation To use the functions in this header, C++11 is required More...

#include "./base.h"
#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <atomic>
#include <thread>
#include <utility>
#include <memory>
#include "./data.h"
#include "./logging.h"
Include dependency graph for threadediter.h:

Go to the source code of this file.

Classes

class  dmlc::ScopedThread
 Wrapper class to manage std::thread; uses RAII pattern to automatically join std::thread upon destruction. More...
 
class  dmlc::ThreadedIter< DType >
 a iterator that was backed by a thread to pull data eagerly from a single producer into a bounded buffer the consumer can pull the data at its own rate More...
 
class  dmlc::ThreadedIter< DType >::Producer
 producer class interface that threaditer used as source to preduce the content More...
 

Namespaces

 dmlc
 namespace for dmlc
 

Detailed Description

thread backed iterator that can be used to implement general thread-based pipeline such as prefetch and pre-computation To use the functions in this header, C++11 is required

Copyright (c) 2015 by Contributors

Author
Tianqi Chen