Namespaces
Variants
Views
Actions

Thread support library

From cppreference.com
< cpp
Revision as of 17:18, 1 August 2011 by P12 (Talk | contribs)

Template:cpp/thread/sidebar

Contents

Threads

Threads enable the program to execute across several processor cores.

Template:cpp/thread/dcl list threadTemplate:cpp/thread/dcl list yieldTemplate:cpp/thread/dcl list get idTemplate:cpp/thread/dcl list sleep forTemplate:cpp/thread/dcl list sleep until
Defined in header <thread>
Functions managing the current thread
Defined in namespace this_thread

Mutual exclusion

Mutual exclusion algorithms restrict access to a shared resource so that only one thread can access it at a time. This allows to avoid data races and to implement synchronization between threads.

Template:cpp/thread/dcl list mutexTemplate:cpp/thread/dcl list recursive mutexTemplate:cpp/thread/dcl list timed mutexTemplate:cpp/thread/dcl list recursive timed mutexTemplate:cpp/thread/dcl list lock guardTemplate:cpp/thread/dcl list unique lockTemplate:cpp/thread/dcl list try lockTemplate:cpp/thread/dcl list lock
Defined in header <mutex>
Generic mutex management
Generic locking algorithms

Condition variables

manages threads that wait on a mutex
(class)
manages threads that wait on some condition
(class)

(function)

Futures

(C++11)

(class template)
(C++11)

(class template)

(class template)

(class template)