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

◆ thread_local_object() [3/4]

template<typename value_t >
xtd::threading::thread_local_object< value_t >::thread_local_object ( const func< value_t > &  value_factory)
inlineexplicit

Initializes the xtd::threading::thread_local_object instance with the specified value_factory function.

Parameters
value_factoryThe xtd::func invoked to produce a lazily-initialized value when an attempt is made to retrieve xtd::threading::thread_local_object::value without it having been previously initialized.