Namespaces
Variants
Views
Actions

Difference between revisions of "c/thread"

From cppreference.com
< c
m (+no threads macro)
m (Text replace - "{{tdcl list begin" to "{{dcl list begin")
Line 5: Line 5:
  
 
===Types===
 
===Types===
{{tdcl list begin}}
+
{{dcl list begin}}
 
{{tdcl list header | threads.h}}
 
{{tdcl list header | threads.h}}
 
{{tdcl list item | cnd_t | condition variable identifier | notes={{mark c11}}}}
 
{{tdcl list item | cnd_t | condition variable identifier | notes={{mark c11}}}}
Line 17: Line 17:
  
 
===Constants===
 
===Constants===
{{tdcl list begin}}
+
{{dcl list begin}}
 
{{tdcl list item | mtx_plain | indicates plain mutex for mtx_init | notes={{mark c11}}}}
 
{{tdcl list item | mtx_plain | indicates plain mutex for mtx_init | notes={{mark c11}}}}
 
{{tdcl list item | mtx_recursive | indicates recursive mutex for mtx_init | notes={{mark c11}}}}
 
{{tdcl list item | mtx_recursive | indicates recursive mutex for mtx_init | notes={{mark c11}}}}

Revision as of 01:09, 12 June 2012

Template:c/thread/sidebar

If the macro constant __STDC_NO_THREADS__(C11) is defined by the compiler, the header <threads.h> and all of the names listed here are not provided.

Contents

Types

Template:tdcl list headerTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list end

Constants

Template:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list itemTemplate:tdcl list end

Macros

Defined in header <threads.h>
thread local type macro
(macro constant)
initializes a once_flag
(macro constant)
maximum number of times destructors are called
(macro constant)

Functions

Defined in header <threads.h>
creates a thread
(function)
detaches a thread
(function)
obtains the current thread identifier
(function)
checks if two identifiers refer to the same thread
(function)
terminates the calling thread
(function)
blocks until a thread terminates
(function)
suspends execution of the calling thread for the given period of time
(function)
yields the current time slice
(function)
calls a function exactly once
(function)
creates a condition variable
(function)
unblocks one thread blocked on a condition variable
(function)
unblocks all threads blocked on a condition variable
(function)
blocks on a condition variable
(function)
blocks on a condition variable, with a timeout
(function)
destroys a condition variable
(function)
creates a mutex
(function)
blocks until locks a mutex
(function)
blocks until locks a mutex or times out
(function)
locks a mutex or returns without blocking if already locked
(function)
unlocks a mutex
(function)
destroys a mutex
(function)
creates thread-specific storage pointer with a given destructor
(function)
reads from thread-specific storage
(function)
write to thread-specific storage
(function)
releases the resources held by a given thread-specific pointer
(function)