xtd 0.2.0
Loading...
Searching...
No Matches

◆ values()

template<typename value_t >
std::vector< value_t > xtd::threading::thread_local_object< value_t >::values ( ) const
inline

Gets a list containing the values stored by all threads that have accessed this instance.

Returns
A list for all of the values stored by all of the threads that have accessed this instance.
Exceptions
xtd::invalid_operation_exceptionValues stored by all threads are not available because this instance was initialized with the track_all_values argument set to false in the call to a class constructor.
Remarks
Each thread that has ever accessed this instance will contribute to this list the value last stored into the instance. This includes threads that have since exited.