diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2019-02-16 03:28:02 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2019-02-16 04:00:19 +0100 |
commit | 24e7a54cd0643ef9bfe2c22bc9099bba8f81f584 (patch) | |
tree | 82a4977fe20cf45926c6aebf2d97998b4de34801 /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | f5477ee36f2d34a5d6db0ee3e1516e9c12be28d5 (diff) |
Fix alignment and locking issues with CommandQueueMT
The allocations of commands in CommandQueueMT weren't aligned. This
commit aligns all accesses on 64bit boundaries regardless of target
platform. This ensures that all types are aligned.
Lock-wise the semaphores were maked as usable when the command had ran
but not when the synchronous stub had finished with it. This lead to a
race condition where sometimes the semaphore got reused before it was
waited on. We now mark the semaphore as free only once we're done
waiting on it.
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
0 files changed, 0 insertions, 0 deletions