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
This check doesn't guarantee it only executes once. You could use the Once class to make it safe, but then you'll still have the same race on L118. You could modify Once to allow passing in a lock object (similar to how threading.Condition accepts an optional Lock object) and reuse it on L118 or inline the logic in Once here to make this all thread safe.
This check doesn't guarantee it only executes once. You could use the
Once
class to make it safe, but then you'll still have the same race on L118. You could modifyOnce
to allow passing in a lock object (similar to howthreading.Condition
accepts an optional Lock object) and reuse it on L118 or inline the logic inOnce
here to make this all thread safe.We actually have the same bug in the tracing SDK.
Feel free to open an issue for this and address in a separate PR
Originally posted by @aabmass in #2227 (comment)
The text was updated successfully, but these errors were encountered: