Essentially, make the entire Invoke() call acquire mutex, and then remove others to avoid deadlock. I am not sure this is an entirely appropriate solution, but it does seem to work for me.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #97
Description of changes:
Fixes the error:
when there are multiple concurrent invocations.
Essentially, make the entire
Invoke()
call acquire mutex, and then remove others to avoid deadlock. I am not sure this is an entirely appropriate solution, but it does seem to work for me.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.