|
inline |
Initializes the xtd::threading::thread_local_object instance with the specified value_factory function and a flag that indicates whether all values are accessible from any thread.
value_factory | The xtd::func invoked to produce a lazily-initialized value when an attempt is made to retrieve Value without it having been previously initialized. |
track_all_values | true to track all values set on the instance and expose them through the xtd::threading::thread_local_object::values property; false otherwise. When set to true, a value stored from a given thread will be available through xtd::threading::thread_local_object::values even after that thread has exited. |