commit | c747cffa950b8398cb8844d47e2253214c855750 | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Fri Aug 31 18:20:08 2012 -0700 |
committer | Ian Rogers <irogers@google.com> | Fri Aug 31 18:26:30 2012 -0700 |
tree | 4b77ecc1dc6f2a76c755381a2925f34ed080c74f | |
parent | faf459e5decdfcf6dd7844947898beefe31e6435 [diff] |
Runnable -> Suspended -> Runnable, avoid 2 locks Allow some freedom in the Transtion code to change thread state without holding a lock in 2 cases where it is safe. 1) into Suspended we know that we're suspended and so checking the suspend count is a mute point. 2) when going into Runnable we can do a racy check before doing a secondary check after we've acquired a share on the mutator lock. Change-Id: Ibf0e5f42acc1ff3cf06312ef001a74344d4dfa8c