overte icon indicating copy to clipboard operation
overte copied to clipboard

Fixed deadlocks in Recording API

Open ksuprynowicz opened this issue 1 year ago • 0 comments

This fixes deadlock in Interface and in Assignment Client due to Recording API calls. Earlier all Recording script API calls happened on main thread using BLOCKING_INVOKE_METHOD, which is fine for ones that don't do anything script engine-related, but will cause a deadlock when script value such as script callback is copied or accessed. I added a recursive mutex to all calls to be sure that it's thread-safe.

ksuprynowicz avatar May 15 '24 23:05 ksuprynowicz