然Y
Results
4
comments of
然Y
static only ensures that the construction is thread-safe. For example, Fun function, if the returned object is static, this operation is not thread-safe. Changing static to thread_local will solve this...
Of course, static objects are also thread-safe if obj is not a reference type.