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
Use try_emplace in SetThread instead of threads.find
This commit easiest to review ignoring whitespace (git diff -w). This is a
minor change in behavior, but the only change is shortening the duration that
threads.mutex is locked while inserting a new entry in the threads.ref map. The
lock is now only help while the entry is created and is released while the
ProxyClient<Thread> object is initialized.
This change doesn't really fix any problems but it simplifies the next commit
which deals with race conditions and deadlocks in this code, so it has been
split out.
0 commit comments