#include <UT_ThreadSpecificValue.h>
Public Member Functions | |
| UT_ThreadSpecificValue () | |
| ~UT_ThreadSpecificValue () | |
| T & | get () |
| const T & | get () const |
| T & | getValueForThread (int thread_index) |
| const T & | getValueForThread (int thread_index) const |
| int | maxThreadsSeen () const |
Definition at line 62 of file UT_ThreadSpecificValue.h.
| UT_ThreadSpecificValue< T >::UT_ThreadSpecificValue | ( | ) | [inline] |
Definition at line 65 of file UT_ThreadSpecificValue.h.
| UT_ThreadSpecificValue< T >::~UT_ThreadSpecificValue | ( | ) | [inline] |
Definition at line 73 of file UT_ThreadSpecificValue.h.
| const T& UT_ThreadSpecificValue< T >::get | ( | ) | const [inline] |
Definition at line 101 of file UT_ThreadSpecificValue.h.
| T& UT_ThreadSpecificValue< T >::get | ( | ) | [inline] |
Definition at line 88 of file UT_ThreadSpecificValue.h.
| const T& UT_ThreadSpecificValue< T >::getValueForThread | ( | int | thread_index | ) | const [inline] |
Definition at line 134 of file UT_ThreadSpecificValue.h.
| T& UT_ThreadSpecificValue< T >::getValueForThread | ( | int | thread_index | ) | [inline] |
Access the value for a particular thread index. Note that the threads you care about may not have been assigned sequentially! Always loop up to the maxthreads value and be able to handle zero-initialized empty data.
Definition at line 118 of file UT_ThreadSpecificValue.h.
| int UT_ThreadSpecificValue< T >::maxThreadsSeen | ( | ) | const [inline] |
The highest value of thread index that has been seen by this threadspecific value. Iterating over 0..maxthreads-1 will allow you to check all thread output.
Definition at line 154 of file UT_ThreadSpecificValue.h.
1.5.9