mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 13:16:29 +13:00
d81558291e
Current process is as follows: 1. Invoked .exe gets the semaphore 2. Invoked .exe sets `InstanceProxy` values in running exe 3. Invoked .exe causes thread to spawn in running exe 4. New thread in running .exe reads values from `InstanceProxy` 4. Invoked .exe release the semaphore The problem is that there is no guarantee on how fast new threads in running .exe will spawn and read values from `InstanceProxy`. This PR addresses that by moving the semaphore release from the invoked .exe to the thread spawned in running .exe. |
||
---|---|---|
.. | ||
ApplicationInstanceManager.cs | ||
InstanceProxy.cs |