Remove the `Context::Lock` parameter from `enter()`. We don't want to force the lock to be held for the entire duration of the call. Add `UpdateFrame` type alias. Add the `UpdateFrame` parameter to `enter()` - you usually want to update the frame as soon as you've pushed the stack. Switch `pauseAtFrame` from a `shared_ptr` to a `weak_ptr`. If the frame is released before the thread finds it to pause, then the thread will instead pause at the next frame (following the logic of a null `pauseAtFrame`). Fixed the assignment of `pauseAtFrame` in `stepOut()` - it was looking at the current frame, not the next one up. Bug: b/145351270 Change-Id: I1cb85af58c666a7793145480abc95a4ec82e1859 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48695Tested-by:Ben Clayton <bclayton@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Context.cpp | Loading commit data... | |
| Context.hpp | Loading commit data... | |
| Debug.cpp | Loading commit data... | |
| EventListener.cpp | Loading commit data... | |
| EventListener.hpp | Loading commit data... | |
| File.cpp | Loading commit data... | |
| File.hpp | Loading commit data... | |
| ID.hpp | Loading commit data... | |
| Location.hpp | Loading commit data... | |
| Server.cpp | Loading commit data... | |
| Server.hpp | Loading commit data... | |
| Thread.cpp | Loading commit data... | |
| Thread.hpp | Loading commit data... | |
| TypeOf.cpp | Loading commit data... | |
| TypeOf.hpp | Loading commit data... | |
| Value.cpp | Loading commit data... | |
| Value.hpp | Loading commit data... | |
| Variable.cpp | Loading commit data... | |
| Variable.hpp | Loading commit data... | |
| WeakMap.hpp | Loading commit data... |