Page MenuHome

Move call to drw_state_ensure_not_reused() inside the region locked by DST.gl_context_mutex.
ClosedPublic

Authored by Edmund Kapusniak (edmundmk) on Jun 13 2018, 11:24 PM.

Details

Summary

Currently with a debug build there is a race condition where the mutex is released before the DST structure is reset to 0xFF, meaning when multiple threads are using the DRWManager it can get cleared when the main thread is using it, causing crashes.

Diff Detail

Repository
rB Blender

Event Timeline

Edmund Kapusniak (edmundmk) retitled this revision from Move call to drw_state_ensure_not_reused() inside the region locked by DST.gl_lock_mutex. to Move call to drw_state_ensure_not_reused() inside the region locked by DST.gl_context_mutex..
This revision is now accepted and ready to land.Jun 14 2018, 10:01 AM
This revision was automatically updated to reflect the committed changes.