#include <thread>
#include <future>
#include <mutex>
#include "debug.h"
#include "mrtrix.h"
#include "exception.h"
Go to the source code of this file.
Classes | |
class | MR::Thread::__Backend |
Namespaces | |
namespace | MR |
namespace | MR::Thread |
Enumerations | |
enum class | MR::Thread::nthreads_t { MR::Thread::nthreads_t::UNINITIALISED , MR::Thread::nthreads_t::EXPLICIT , MR::Thread::nthreads_t::IMPLICIT } |
Functions | |
size_t | MR::Thread::number_of_threads () |
nthreads_t | MR::Thread::type_nthreads () |
size_t | MR::Thread::threads_to_execute () |
template<class Functor > | |
__Multi< typename std::remove_reference< Functor >::type > | MR::Thread::multi (Functor &&functor, size_t nthreads=threads_to_execute()) |
used to request multiple threads of the corresponding functor More... | |
template<class Functor > | |
__run< Functor >::type | MR::Thread::run (Functor &&functor, const std::string &name="unnamed") |
Execute the functor's execute method in a separate thread. More... | |
|
protected |