mxnet
Classes | Namespaces | Typedefs | Functions
thread_group.h File Reference

Thread and synchronization primitives and lifecycle management. More...

#include <dmlc/concurrentqueue.h>
#include <dmlc/blockingconcurrentqueue.h>
#include <dmlc/logging.h>
#include <string>
#include <mutex>
#include <utility>
#include <memory>
#include <set>
#include <thread>
#include <unordered_set>
#include <unordered_map>
#include <condition_variable>
Include dependency graph for thread_group.h:

Go to the source code of this file.

Classes

class  dmlc::ManualEvent
 Simple manual-reset event gate which remains open after signalled. More...
 
class  dmlc::ThreadGroup
 Thread lifecycle management group. More...
 
class  dmlc::ThreadGroup::Thread
 Lifecycle-managed thread (used by ThreadGroup) More...
 
class  dmlc::BlockingQueueThread< ObjectType, quit_item >
 Blocking queue thread class. More...
 
class  dmlc::TimerThread< Duration >
 Managed timer thread. More...
 

Namespaces

 dmlc
 namespace for dmlc
 

Typedefs

using dmlc::SharedMutex = std::recursive_mutex
 Standard mutex for C++ < 14. More...
 
using dmlc::WriteLock = std::unique_lock< SharedMutex >
 Standard unique lock for C++ < 14. More...
 
using dmlc::ReadLock = std::unique_lock< SharedMutex >
 Standard unique lock for C++ < 14. More...
 

Functions

template<typename Duration , typename TimerFunction >
bool dmlc::CreateTimer (const std::string &timer_name, const Duration &duration, ThreadGroup *owner, TimerFunction timer_function)
 Utility function to easily create a timer. More...
 

Detailed Description

Thread and synchronization primitives and lifecycle management.

Copyright (c) 2017 by Contributors