DescriptionFix ThreadChecker bug in WeakNSObject
When a WeakNSObject was copied on a different thread from where it was
created, the state of the thread checker was lost.
As a consequence it was not possible to send a WeakNSObject on another
thread, copy it there, and send the copy back: a ThreadChecker error
was raised.
This CL adds more thread checks in the WeakContainer, which matches
what WeakPtr also does, and keeps most of the checks in the main
class (which is stricter than WeakPtr).
Committed: https://crrev.com/4f05f5a8b793ec451683dd96c058cbe74037713d
Cr-Commit-Position: refs/heads/master@{#311865}
Patch Set 1 #Patch Set 2 : Added more thread checks #
Total comments: 2
Patch Set 3 : Review comments #Patch Set 4 : Minor comment change #
Total comments: 1
Patch Set 5 : Comments #Messages
Total messages: 27 (9 generated)
|