You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[utility]: Change behavior of main thread verification utility (envoyproxy#14660)
Currently, the isMainThread function can only be called during the lifetime of thread local instance because the singleton that store main thread id is initialized in the constructor of tls instance and cleared in the destructor of tls instance. Change the utility so that outside the lifetime of tls instance, the function return true by default because everything is in main thread when threading is off.
Risk Level: low
Testing: change unit to reflect change of behavior.
Signed-off-by: chaoqin-li1123 <[email protected]>
0 commit comments