Developer documentation
Version 3.0.3-105-gd3941f44
Multi-threading

functions to provide support for multi-threading More...

Modules

 Thread-safe image looping
 
 Basic multi-threading primitives
 basic functions and classes to allow multi-threading
 
 Thread-safe queue
 Functionality for thread-safe parallel processing of queued items.
 

Detailed Description

functions to provide support for multi-threading

These functions and associated classes provide a simple interface for multi-threading in MRtrix applications. Most of the low-level funtionality relies on the C++11 std::thread API. MRtrix3 builds on this to add three convenience methods:

These APIs provide simple and convenient ways of multi-threading, and should be sufficient for the vast majority of applications.

Please refer to the Writing multi-threaded applications page for an overview of multi-threading in MRtrix.

See also
Thread::run()
threaded_loop
Thread::run_queue()