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

◆ value() [2/2]

template<typename value_t >
void xtd::threading::thread_local_object< value_t >::value ( value_t  value)
inlinenoexcept

Sets the value of this instance for the current thread.

Parameters
valueAn instance of the object that this xtd::threading::thread_local_object::value is responsible for initializing.
Remarks
If this instance was not previously initialized for the current thread, accessing xtd::threading::thread_local_object::value will attempt to initialize it. If an initialization function was supplied during the construction, that initialization will happen by invoking the function to retrieve the initial value for xtd::threading::thread_local_object::value. Otherwise, the default value of value_t will be used.